2014-06-27 17 views
0

我正嘗試卸載express 4.x至3.x.以下是我目前看到的終端:在npm中卸載全局程序包(快遞)

npm uninstall express 
npm WARN uninstall not installed in /home/johnmlocklear/node_modules: "express" 

npm uninstall -g express 
npm WARN uninstall not installed in /usr/local/lib/node_modules: "express" 

express -V 
4.2.0 

ls .npm/express 
3.0.0 4.2.0 4.4.4 

which express 
/usr/local/bin/express 

ls -lh /usr/local/bin/express 
/usr/local/bin/express -> ../lib/node_modules/express-generator/bin/express 

所以我想我很困惑,爲什麼故宮正在尋找在快遞我的主文件夾。另外,如果我使用-g選項嘗試此操作,則會得到相同的錯誤消息。我想要完全安裝express,我可以重新安裝版本3,或者有沒有辦法選擇版本3作爲活動版本?

+0

它不會出現在命令至少是從['express'](https://www.npmjs.org/package/express),但['表達-generator'](https://www.npmjs.org/package/express-generator)。 –

+0

嘗試'npm -g rm express'。 –

回答