What's the best way to reinstall node.js?
4 Answers
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
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