删除 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 -v

npm -v

都显示command not found即对

 

posted @ 2019-05-21 11:14  Sameen  阅读(176)  评论(0编辑  收藏  举报