How do you uninstall node.js using the cmd line in linux?
相关问题
- npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fs
- Is shmid returned by shmget() unique across proces
- how to get running process information in java?
- google-drive can't get push notifications
- How to reimport module with ES6 import
This is better to remove NodeJS and its modules manually because installation leaves a lot of files, links and modules behind and later it create problems while we reconfigure another version of NodeJS and its modules. Run the following commands.
sudo rm -rf /usr/local/lib/node*
sudo rm -rf /usr/local/include/node*
sudo rm -rf /usr/local/bin/node*
and this done.
A step by step guide with commands is at http://amcositsupport.blogspot.in/2016/07/to-completely-uninstall-node-js-from.html
This helped me resolve my problem.
after installing using the "ROCK-SOLID NODE.JS PLATFORM ON UBUNTU" script, i get this output. Which tells you how to uninstall nodejs.
If you installed from source, you can issue the following command:
If you followed the instructions on https://github.com/nodejs/node/wiki to install to your $HOME/local/node, then you have to type the following before the line above:
if you want to just update node, there's a neat updater too
https://github.com/creationix/nvm
to use,
Best way to go around this is to do it right from the BEGINNING:
INSTALL BREW
Then at the end of your .bashrc file(In your home directory press Ctrl + H)
Then restart terminal so the modification to .bashrc are reloaded
TO INSTALL NODE
TO CHECK VERSION
TO UPDATE NODE
TO UNINSTALL NODE
To uninstall node I followed the accepted answer by @George, as I no longer have the sources, but before doing so I ran:
That seemed to get rid of npm from the system directories such as
/usr/bin/npm
and/usr/lib/npm
. I got the command from here. I then found a~/.npm
directory, which I deleted manually. Honestly I don't know if every trace of npm has been removed, but I can't find anything else.