关于macos:从Mountain Lion中删除Node.Js.

Removing Node.Js from Mountain Lion

本问题已经有最佳答案,请猛点这里访问。

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

我正在尝试从系统中删除node.js,以便使用NVM版本管理器重新安装它。

我刚才安装了node.js,根据node --version,我运行的是v0.6.8

我已经看过了,但我发现大多数答案都局限于通过pkg文件安装的节点,而且它们的补救措施对我不起作用。


如答案所示,我如何完全卸载node.js并从头重新安装(mac os x)

  • go to /usr/local/lib and delete any node and node_modules
  • go to /usr/local/include and delete any node and node_modules directory
  • if you installed with brew install node, then run brew uninstall node in your terminal
  • check your Home directory for any"local" or"lib" or"include" folders, and delete any"node" or"node_modules" from there
  • go to /usr/local/bin and delete any node executable
  • go to /usr/bin and delete any node executable