Javascript

mac完全卸载nodejs

本文主要是介绍mac完全卸载nodejs,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
sudo npm uninstall npm -g  
sudo rm -rf /usr/local/lib/node 
sudo rm -rf /usr/local/lib/node_modules
sudo rm -rf /var/db/receipts/org.nodejs.* 
sudo rm -rf /usr/local/include/node /Users/$USER/.npm*
sudo rm /usr/local/bin/node   
sudo rm /usr/local/share/man/man1/node.1  
sudo rm /usr/local/share/man/man1/npm-*
sudo rm /usr/local/share/man/man1/npm.1 
sudo rm /usr/local/share/man/man1/npx.1 
sudo rm /usr/local/share/man/man5/npm* 
sudo rm /usr/local/share/man/man5/package.json.5 
sudo rm /usr/local/share/man/man7/npm*
sudo rm /usr/local/lib/dtrace/node.d 

原文:
Mac电脑使用: 完全彻底卸载node的步骤

这篇关于mac完全卸载nodejs的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!