Removing Node.Js from Mountain Lion

Keva161 picture Keva161 · Feb 3, 2013 · Viewed 34.4k times · Source

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

Answer

Menztrual picture Menztrual · Feb 3, 2013

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