$ npm install express -g 问题

$ npm install express -g

报错的话

最后查找原因,原来,最新express版本中将命令工具分家出来了(项目地址:https://github.com/expressjs/generator),所以我们还需要安装一个命令工具,命令如下:

npm install -g express-generator


然后 在 express --version   (两个-     不要express -v 也不要不要express -V 百度教程有问题)  




猜你喜欢

转载自blog.csdn.net/wy_Blog/article/details/80053548