Return to site
· Commands,Node JS,Webapplications,Web Development,Install
broken image

When you want to uninstall a program usually we uninstall from the UI. Lets see how to uninstall

Node.js from Linux using command prompt. Open command prompt and go to the directory then

type which node. This will return something like/path/bin/node

. Then runcd/path. It is all that added by Node.js.

Now remove npm using sudo.

Npm needs node to run so you might not be able to remove npm if you have already removed node.

So type npm uninstall npm command before removing Node.Read more