我已經快速安裝,但它不再有效。當我輸入端「表示:」我得到:無法在Ubuntu 13.x中快速卸載
bash: /usr/local/bin/express: No such file or directory
如果我嘗試卸載我得到...
sudo npm uninstall –g express
npm WARN uninstall not installed in /home/user/expressApps/sausage/node_modules: "–g"
npm WARN uninstall not installed in /home/user/expressApps/sausage/node_modules: "express"
或者,如果我嘗試重新安裝我得到...
sudo npm install –g express
npm WARN package.json [email protected] No README.md file found!
npm http GET https://registry.npmjs.org/express/3.12.1
npm http GET https://registry.npmjs.org/%E2%80%93g
npm http 404 https://registry.npmjs.org/%E2%80%93g
npm ERR! 404 '%E2%80%93g' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.
npm ERR! System Linux 3.11.0-24-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "–g" "express"
npm ERR! cwd /home/johnmlocklear/expressApps/sausage
npm ERR! node -v v0.10.15
npm ERR! npm -v 1.2.18
npm ERR! code E404
npm http 304 https://registry.npmjs.org/express/3.12.1
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/johnmlocklear/expressApps/sausage/npm-debug.log
npm ERR! not ok code 0
我該如何再次快速工作?
很高興這個清理!但是'sudo nom uninstall -g express'問題我的答案發現了嗎?這絕對是您的命令中編碼爲「en-dash」的網址。 – JakeGould
這解決了我的問題,謝謝,加上一個雖然。 但還有一件事,我使用npm安裝了npm ..它的weired,但這是我可以正確安裝npm'sudo npm install npm'的唯一方法 – Yahya