How do you uninstall node.js using the cmd line in linux?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Edit: If you know which package manager was used to install, it is best to uninstall with the same package manager. Examples for
apt,make,yumare in other answers.This is a manual approach:
Running
which nodewill return something like/path/bin/node.Then run
cd /pathThis is all that is added by Node.JS.
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.