Posted By: Anonymous
How do you uninstall node.js using the cmd line in linux?
Edit: If you know which package manager was used to install, it is best to uninstall with the same package manager. Examples for
yum are in other answers.
This is a manual approach:
which node will return something like
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.