I installed NVM from the nvm-setup.zip Then, at the command prompt, I ran
nvm install 8.11.2
Then I ran
nvm use 8.11.2
which output
now using node v8.11.2 (64-bit)
Then I ran
SET PATH=C:\Program Files\Nodejs;%PATH%
However when I type
node
I get
'node' is not recognized as an internal or external command
You must click the Kill Terminal button (highlighted) and then restart VS Code and node will start working again.
Two of the main reasons due to which you can encounter the above-mentioned error are: Node. js is not installed on your system. Environment variables are incorrectly set.
To see if Node is installed, open the Windows Command Prompt, Powershell or a similar command line tool, and type node -v . This should print the version number so you'll see something like this v0. 10.35 .
I removed the following folders ( kirst being my user name)
C:\Users\kirst\AppData\Roaming\npm
C:\Users\kirst\AppData\Roaming\npm-cache
C:\Program Files\nodejs
Then I ran the following at the command prompt ( 8.11.2 being the version I wanted)
Nvm uninstall 8.11.2
Nvm install 8.11.2
Nvm use 8.11.2
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With