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


cmd中输入npm命令提示:npm should be run outside of the node repl, in your normal shell.

解决:

cmd窗口打开后不要输入node,直接打 npm  xxxx 命令!!!

 

如果输入了会n打开nodejs 的repl模式,需要自己退出该模式或者重新打开cmd窗口才可以进行其它npm命令

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM