从 Mountain Lion 中删除 Node.Js

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/14673327/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-02 17:05:23  来源:igfitidea点击:

Removing Node.Js from Mountain Lion

macosnode.jsrvmuninstall

提问by Keva161

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

可能的重复:
如何完全卸载 Node.js,并从头开始重新安装 (Mac OS X)

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

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

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

我不久前安装了 Node.js,根据 node --version,我正在运行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..

我环顾四周,但我发现的大多数答案都仅限于通过 PKG 文件安装 Node 并且它们的补救措施对我不起作用。

回答by Menztrual

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

如答案所见,我如何完全卸载 Node.js,并从头开始重新安装 (Mac OS X)

  1. go to /usr/local/liband delete any nodeand node_modules
  2. go to /usr/local/includeand delete any nodeand node_modulesdirectory
  3. if you installed with brew install node, then run brew uninstall nodein 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/binand delete any nodeexecutable
  6. go to /usr/bin and deleteany nodeexecutable
  1. 转到/usr/local/lib并删除任何节点node_modules
  2. 转到/usr/local/include并删除任何节点node_modules目录
  3. 如果您使用brew install node 安装,则在终端中运行brew uninstall node
  4. 检查您的主目录中是否有任何“local”或“lib”或“include”文件夹,并从那里删除任何“node”或“node_modules”
  5. 转到/usr/local/bin并删除任何节点可执行文件
  6. 转到/usr/bin 并删除任何节点可执行文件