完全删除mac上的node.js
博客专区 > 橙卓 的博客 > 博客详情
完全删除mac上的node.js
橙卓 发表于11个月前
完全删除mac上的node.js
  • 发表于 11个月前
  • 阅读 1
  • 收藏 0
  • 点赞 0
  • 评论 0

腾讯云 学生专属云服务套餐 10元起购>>>   

摘要: 完全删除mac上的node.js

Mac – So I have been hit by an issue during uninstall of Node.js on my mac. I encountered some strange behaviour like npmis still their even after having removing it with all this.

In order to delete the ‘native’ node.js installation, the following is the best way to completely uninstall node + npm:

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

You may need to do the additional instructions as well:

1sudo rm /usr/local/bin/npm
2sudo rm /usr/local/share/man/man1/node.1
3sudo rm /usr/local/lib/dtrace/node.d
4sudo rm -rf ~/.npm
5sudo rm -rf ~/.node-gyp
6sudo rm /opt/local/bin/node
7sudo rm /opt/local/include/node
8sudo rm -rf /opt/local/lib/node_modules
9sudo rm -rf /usr/local/include/node/
共有 人打赏支持
粉丝 7
博文 30
码字总数 8179
×
橙卓
如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
* 金额(元)
¥1 ¥5 ¥10 ¥20 其他金额
打赏人
留言
* 支付类型
微信扫码支付
打赏金额:
已支付成功
打赏金额: