`npm run dev` not able to run due to Node version, but problem persists even after I updated Node.
Answered
TOM posted this in #help-forum
TOMOP
Got an error stating that I need a higher node version.
I updated to a higher node version.
Deleted and reinstalled node_modules.
Restarted pc.
But the problem still persists.
I updated to a higher node version.
Deleted and reinstalled node_modules.
Restarted pc.
But the problem still persists.
49 Replies
TOMOP
I usually run stuff via a docker container, but decided not to this time for some reason. I'd go back to dockerizing ig, but I don't understand why I'm facing this issue tbh.
@TOM ?
@B33fb0n3 <@1176437918844334138> ?
TOMOP
Hi sorry for the late reply. I ended up using docker. Using a docker image resulted in the dev command to run fine even with
But I tried it again on windows, & even after reinstalling node and removing turbo from the dev command, it still didn't work.
--turbopack.But I tried it again on windows, & even after reinstalling node and removing turbo from the dev command, it still didn't work.
node -v is telling u 22?
on windows cmd
do u have bash installed by any chance?
try running from that
TOMOP
Looking around, the only answer I got was to use nvm to change the version. But I never had nvm
yeah sorry
bash
TOMOP
should be come preinstalled when installing git
@TOM Click to see attachment
run npm from there
can u go to system variables and check the path of your npm installation
just to make sure we dont link twice for some reason
@gin can u go to system variables and check the path of your npm installation
TOMOP
checked. checked the node.exe there too. its 22. Should there be an npm.exe too? there was a npm folder, but I think I also have a npm in my -g nodemodules
u install npm with npm?
lol
remove the npm from -g
Answer
global cache
yup
TOMOP
how did I even do this
idk lol
TOMOP
can I remove all the modules here? there are a lot
theoritically u can, just make sure ur apps have the dependencies installed in the relative node_modules
or some weird app u have installed on windows isnt using the global cache for runtime libs
TOMOP
@gin theoritically u can, just make sure ur apps have the dependencies installed in the relative node_modules
TOMOP
ofc that's how I use node
@TOM Click to see attachment
yeah keep those
to be safe
@gin yeah keep those
TOMOP
I already shift deleted them o7
yeah not a problem
TOMOP
if something breaks, we'll see
glad it works
@gin glad it works
TOMOP
thanks for the help! how do I mark the question answered?
@gin Click to see attachment
TOMOP
Thanks again!~ have a good day