第一次用node.js,准备用Jade模版,但是安装npm过程中出了点问题,请前辈们赐教

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

阅读 8.9k
2 个回答

不要在 node.exe 里面跑 npm install ,在 cmd.exe 里面跑。windows 里面的 normal shell 指的是 cmd.exe

不要在命令里先空白输入:node,然后在nodeREPL(交互式解释器)里执行你的安装命令;

现在ctrl + c(两遍),退出REPL(交互式解释器),然后在再执行你的安装命令:

npm install jade

好了

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题