2014-06-05 43 views

回答

32

要卸載全局包:

npm uninstall -g bower 

看到這個線程:how to uninstall npm modules in node js?

+0

我收到了npm錯誤一堆的錯誤!...我怎麼能繞過他們,並強制卸載正確? –

+0

當你啓動cmd時,你是否是root用戶?之前試用sudo。 – dpellier

+0

是的我在命令行之前鍵入sudo -s來卸載Bower。在輸入我的密碼後(以及在卸載Bower之前),我剛剛得到了** bash-3.2#**作爲終端的答覆。 –

3
sudo npm uninstall -g bower 

須藤:做它作爲一個超級用戶/管理員

-g:到全球嘗試

1
sudo npm uninstall -g bower 
sudo npm remove -g bower 
sudo npm rm -g bower 

NPM卸載別名中,RM,R,聯合國,斷開鏈接reference

+0

您可以詳細說明步驟嗎? –

+0

在提到的3行(命令)中,你可以使用任何一個'em來卸載涼亭。刪除,r​​m,r,un,不同於「卸載別名」。是否有意義? –