Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question

migrated from stackoverflow.com Oct 16 '10 at 3:41

This question came from our site for professional and enthusiast programmers.

add comment

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.

share|improve this answer
add comment

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

share|improve this answer
add comment
make clean

make

make install
share|improve this answer
add comment

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
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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