简体   繁体   中英

Uninstall Node js Windows 10

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?

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.

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM