我只是運行一個基本的mocha安裝命令,並在mac終端中拋出錯誤,請建議查看日誌我可以做些什麼來獲得這個運行,真的很感謝幫助。sudo npm install -g mocha不工作
AUK03154:~ itrmg$ sudo npm install –g mocha
Password:
npm ERR! 404 404 Not Found: %E2%80%93g
npm ERR! 404
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 Darwin 13.1.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "–g" "mocha"
npm ERR! cwd /Users/itrmg
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! code E404
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/itrmg/npm-debug.log
npm ERR! not ok code 0
感謝 Deepesh
否我輸入了命令。 – Max