Search code examples
nvm

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


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

Solution

  • 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