扫码关注官方订阅号
npm should be run outside of the node repl, in your normal shell
业精于勤,荒于嬉;行成于思,毁于随。
不要在 node.exe 里面跑 npm install ,在 cmd.exe 里面跑。windows 里面的 normal shell 指的是 cmd.exe。
node.exe
npm install
cmd.exe
windows
normal shell
不要在命令里先空白输入:node,然后在node的REPL(交互式解释器)里执行你的安装命令;
node
REPL
现在ctrl + c(两遍),退出REPL(交互式解释器),然后在再执行你的安装命令:
ctrl + c
npm install jade
好了
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
不要在
node.exe里面跑npm install,在cmd.exe里面跑。windows里面的normal shell指的是cmd.exe。不要在命令里先空白输入:
node,然后在node的REPL(交互式解释器)里执行你的安装命令;现在
ctrl + c(两遍),退出REPL(交互式解释器),然后在再执行你的安装命令:好了