首页 > 系统服务 > 详细

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

时间:2015-06-14 00:16:09      阅读:17711      评论:0      收藏:0      [点我收藏+]

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

原文:http://www.cnblogs.com/fa20091001/p/4574356.html

(2)
(1)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!