Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Removing Node.Js from Mountain Lion [duplicate]

Tags:

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

like image 341
Keva161 Avatar asked Feb 03 '13 14:02

Keva161


People also ask

How do I remove a specific version of Nodejs?

Use NVM to Uninstall Node NVM allows you to uninstall Node versions that are no longer required. Run the command nvm uninstall with the version of Node you'd like to remove. You cannot remove a version you are currently using, so you must switch to a different version first.

How do I uninstall an older version of node JS?

Search for Program and features. Under the program and features click on Uninstall a program. Now search for Node. js and uninstall it.


1 Answers

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
like image 158
Menztrual Avatar answered Sep 27 '22 21:09

Menztrual