npm should be run outside of the node repl, in your normal shell

來源:互聯網
上載者:User

標籤:

Node版本:v0.12.4

在安裝 npm install -g -supervisor是出現:

npm ERR! addLocal Could not install D:\Program Files\nodejs
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "D:\\Program Files\\nodejs\\\\node.exe" "D:\\Program Files\\
\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "-supervisor"
npm ERR! node v0.12.4
npm ERR! npm v2.10.1
npm ERR! code EISDIR
npm ERR! errno -4068

npm ERR! EISDIR, read
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR! D:\Program Files\nodejs\npm-debug.log

也就是說,想要運行node命令,需要在系統的shell中,比如windows的cmd。node內建的那個叫repl,不能在其中運行npm命令,只能運行js語句

需要在其它的CMD檔案命令列下運行

npm install -g supervisor即可;

參考網址:

http://stackoverflow.com/questions/24476805/how-to-resolve-npm-should-be-run-outside-of-the-node-repl-in-your-normal-shell

npm should be run outside of the node repl, in your normal shell

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.