mac 經常使用命令

nodenode

npm ls -g --depth=0 // 查看已經安裝在全局的模塊,以便刪除這些全局模塊後再按照不一樣的 node 版本從新進行全局安裝

sudo rm -rf /usr/local/lib/node_modules // 刪除全局 node_modules 目錄
sudo rm /usr/local/bin/node // 刪除 node
cd  /usr/local/bin && ls -l | grep "../lib/node_modules/" | awk '{print $9}'| xargs rm // 刪除全局 node 模塊註冊的軟鏈

macnpm

command+ control + o // 識別圖片中的文字
相關文章
相關標籤/搜索