简体   繁体   English

Express JS 4.0命令行工具无法正常工作

[英]Express JS 4.0 command line tool not working

I was using express 3.x for some time. 我使用快递3.x已经有一段时间了。 The command line tool was working perfectly fine. 命令行工具工作得很好。 I decided to update to 4.0 so that I can try it out and make old apps to 4.x compatible. 我决定更新到4.0,以便我可以尝试将旧应用程序与4.x兼容。

sudo npm install -g express

installed express perfectly fine, but when I try 安装表达完美,但是当我尝试

 exprsss -h

I get 我明白了

bash: /usr/bin/express: No such file or directory

Is there anything I am doing wrong? 有什么我做错了吗?

Express 4 seperates the generator from express. Express 4从快递中分离出发电机

What you need to do is to run: 你需要做的是运行:

$ npm install -g express-generator

Then it will work. 然后它会工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM