3

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

2

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.

1

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

0
make clean

make

make install
0

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

or

$ 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.