How to completely remove node.js from Windows

Viewed 777455

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.

9 Answers

Whatever Node.js version you have installed, run its installer again. It asks you to remove Node.js like this:

Node.js Setup window with buttons for Change, Repair, Remove

I came here because the Remove button was not available from Add/Remove programs. It was saying "Node.js cannot be removed".

This worked:

  1. Got the .msi of my installed Node version. Ran it to repair the installation just in case.
  2. Opened the Administrator command prompt and ran msiexec /uninstall <node.msi>.

I had the same problem with me yesterday and my solution is: 1. uninstall from controlpanel not from your cli 2. download and install the latest or desired version of node from its website 3. if by mistake you tried uninstalling through cli (it will not remove completely most often) then you do not get uninstall option in cpanel in this case install the same version of node and then follow my 1. step

Hope it helps someone.

How to completely remove node.js from Windows

I also ran into this issue.

Solution

I uninstalled NVM for Windows 1.1.7. During the uninstallation, it said it would uninstall all versions of Node.js and npm. Both are now gone :-)

The best thing to do is to remove Node.js from the control panel. Once deleted download the desired version of Node.js and install it and it works.

Related