Uninstall Node.JS using Linux command line?


How do you uninstall node.js using the cmd line in linux?

7/9/2012 12:20:55 PM

Accepted Answer

Running which node will return something like /path/bin/node.

Then run cd /path

This is all that is added by Node.JS.

rm -r bin/node bin/node-waf include/node lib/node lib/pkgconfig/nodejs.pc share/man/man1/node.1

Now the only thing I don't know about is npm and what it has installed. If you install npm again into a custom path that starts off empty, then you can see what it adds and then you will be able to make a list for npm similar to the above list I made for node.

3/10/2013 8:42:55 PM

In Ubuntu 12.04 simply type this

$ sudo apt-get remove nodejs

It will uninstall nodejs and npm as well simple.

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow