Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Uninstall Node js Windows 10

Tags:

node.js

I have node installed in my machine with windows 10, however i found something weird with the node.

When doing node -v from the command line, i got the running version is v0.10.28, but i am sure i have upgrade the node by downloading the node from the node.js which is the version is V4.4.7. So i tried to uninstall the node from the apps and feature, the node was removed, but through command line, i still able to do node -v and return the same version, tried to restart the machine and still the same.

Anyone know how to solve this?

like image 386
Joseph Goh Avatar asked Jul 27 '16 02:07

Joseph Goh


2 Answers

Try look for these folders and remove them (and their contents) if any still exist. Depending on the version you installed, UAC settings, and CPU architecture, these may or may not exist:

  • C:\Program Files (x86)\Nodejs
  • C:\Program Files\Nodejs
  • C:\Users\{User}\AppData\Roaming\npm (or %appdata%\npm)
  • C:\Users\{User}\AppData\Roaming\npm-cache (or %appdata%\npm-cache)

Check your %PATH% environment variable to ensure no references to Nodejs or npm exist.

like image 126
mosesmeirelles Avatar answered Sep 26 '22 23:09

mosesmeirelles


I guess you have multiple nodejs installations on your system. You should run echo %PATH% to see, which is the first nodejs path.

To prove my guess, you can just goto the 4.4.7 installation folder and then run node -v to see the version number. I'm positive you will get 4.4.7.

like image 25
stanleyxu2005 Avatar answered Sep 26 '22 23:09

stanleyxu2005