Mac 上卸载node和npm
Mac 上卸载node和npm
卸载node
依次在终端执行下面的脚本
sudo npm uninstall npm -g
sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /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/lib/dtrace/node.d
最后验证一下
node //command not found
npm //command not found
就卸载完了。
作者:zhongzunfa
来源:CSDN
原文:https://blog.csdn.net/zhongzunfa/article/details/81177494
版权声明:本文为博主原创文章,转载请附上博文链接!