Issue starting a vanilla js build with vite
Using WSL terminal and I'm trying to start a project using vite, keep encountering the below error..
process I tried is below:
21 Replies
you can't make new projects in the Windows folder, it's protected
you'll have to change to a different folder
I didn't even think I was in it tbh, I'm currently in on wSL
hm, my vite knowledge is quickly getting depleted... try without the
restaurant-app
bit? it should prompt younah you get the option to choose project name, framework and ts/js
It wants to run it from
and even without
restaurant-app
it complains about not having write access to c:\windows?aye
google hasn't been very helpful with the answer either, apart from creating a temporary mapping to start it
npm cache clean --force
?chatgpt gave me the reason it failed, which is right, then gave me the fix, which gave the same fail hahaha
damnit
sounds about right
same issue again using your suggestion btw
I could just do it all in powershell but if most of my projects going forward will be using tooling, I kinda need to fix this 😄
I always hate saying this, but it works on my machine... Are you running powershell, or powershell (admin mode)
oh, you're using wsl, wait
I'm running WSL
it works fine in powershell
hm, I haven't used WSL in a while, so it's broken because that's what WSL does
WSL breaks things? lol
mine randomly decides to just not start sometimes, especially after I haven't used it for a few weeks. It works fine most of the time though
how fun lol
what does
npm -v
print?umm.. I'm not sure what happened here but
oh nice, it worked!
I've long since given up wanting to know why something suddenly works. As long as it keeps working, that's all good
hahaha yeah, I did a bunch of things but it could've been a terminal restart that did it after re-installing npm, node etc.
thanks jochem 🙂
always glad to help(?) 😄
good luck with your app!