I uninstalled my previous version of node.js (0.8.11) and downloaded the latest, 0.10.24 from the node.js website and installed it. However, after running node --version
, it still indicates that I'm running v0.8.11. Obviously, some stuff was left behind during the uninstall process, and it's causing me to have all sorts of errors when trying to add modules through npm. I've seen solutions to this for OSX and Linux, but couldn't find anything for Windows. I'm running Windows 7 64-bit.
Node.js – How to completely remove node.js from Windows
node.jsnpmwindowswindows-7-x64
Related Topic
- Javascript – How to pass command line arguments to a Node.js program
- Python – How to install pip on Windows
- Javascript – How to decide when to use Node.js
- Node.js – How to exit in Node.js
- Javascript – How to completely uninstall Node.js, and reinstall from beginning (Mac OS X)
- Node.js – How to uninstall npm modules in Node.js
- Node.js – How to update each dependency in package.json to the latest version
Best Answer
How to remove Node.js from Windows:
Take a deep breath.
Run
npm cache clean --force
Uninstall from Programs & Features with the uninstaller.
Reboot (or you probably can get away with killing all node-related processes from Task Manager).
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
)C:\Users\{User}\.npmrc
(and possibly check for that without the.
prefix too)C:\Users\{User}\AppData\Local\Temp\npm-*
Check your
%PATH%
environment variable to ensure no references toNodejs
ornpm
exist.If it's still not uninstalled, type
where node
at the command prompt and you'll see where it resides -- delete that (and probably the parent directory) too.Reboot, for good measure.