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

来源:互联网 发布:结婚幻灯片制作软件 编辑:程序博客网 时间:2024/06/03 18:20

在node.js自带的界面运行出来的效果:

在Windows中的cmd运行出来的效果:

也就是说,想要运行node命令,需要在系统的shell中,比如windows的cmd。node自带的那个叫repl,不能在其中运行npm命令,只能运行js语句

需要在其它的CMD文件命令行下运行

npm install -g BrowserSync即可;

0 0