What's the best way to reinstall node.js?

4 Answers 4


If you've already installed node, then add a a make uninstall in there too as the first step. So make uninstall; make clean; make; make install; should do it. Note that this has to be run from the source directory for the nodejs version you currently have installed.


If you are going to reinstall you might as well allow for multiple versions, so I would highly recommend NVM

make clean


make install

Assuming you pulled and built from source, you can follow the above examples. If you installed Node though apt-get, you can try something like this:

$ sudo apt-get remove nodejs


$ sudo apt-get --purge remove nodejs

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.