22

Possible Duplicate:
How do I completely uninstall Node.js, and reinstall from beginning (Mac OS X)

I'm trying to remove Node.js from my system so I can reinstall it using the NVM version manager.

I installed Node.js a while ago and according to node --version, I'm running v0.6.8

I've had a look around but most of the answers i've found are limited to Node being installed via a PKG file and their remedies don't work for me..

0

1 Answer 1

57

As found by answer How do I completely uninstall Node.js, and reinstall from beginning (Mac OS X)

  1. go to /usr/local/lib and delete any node and node_modules
  2. go to /usr/local/include and delete any node and node_modules directory
  3. if you installed with brew install node, then run brew uninstall node in your terminal
  4. check your Home directory for any "local" or "lib" or "include" folders, and delete any "node" or "node_modules" from there
  5. go to /usr/local/bin and delete any node executable
  6. go to /usr/bin and delete any node executable
5
  • You should also remove the man pages. Can't remember which, but type man node after you remove the binaries. You should get a complaint from man.
    – dfdumaresq
    Feb 4, 2014 at 22:17
  • 6
    You should add to that list: - /usr/local/lib/dtrace/node.d - /usr/local/share/man/man1/node.1
    – xmarcos
    Mar 4, 2014 at 17:53
  • 1
    You should also delete the whole npm stuff. Feb 23, 2015 at 11:28
  • I also had to delete /usr/local/share/systemtap/tapset/node.stp
    – mhkeller
    Mar 17, 2015 at 21:49
  • Thanks mhkeller, I found that file and deleted it too, but no idea if i needed it. Meh, im reinstalling node via brew anyway, as I had conflicting versions, hence the purge.
    – redfox05
    Nov 25, 2015 at 17:24

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