Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'node' is not recognized as an internal or external command after installing nvm, node and setting path

Tags:

nvm

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
like image 713
Kirsten Avatar asked Aug 06 '19 06:08

Kirsten


People also ask

How do you fix node is not recognized as an internal or external command operable program or batch file in VS code?

You must click the Kill Terminal button (highlighted) and then restart VS Code and node will start working again.

Is not recognized as an internal command node?

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.

How do I check if node is installed in CMD?

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 .


1 Answers

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
like image 139
Kirsten Avatar answered Oct 05 '22 01:10

Kirsten