Express JS 4.0命令行工具不工作 [英] Express JS 4.0 command line tool not working
本文介绍了Express JS 4.0命令行工具不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
sudo npm install -g express
安装Express完全正常,但是当我尝试
exprsss -h
我得到
bash:/ usr / bin / express:没有这样的文件或目录
pre>
有什么我做错了吗?
解决方案Express 4从快递中分离出生成器。
什么你需要做的是运行:
$ npm install -g express-generator
然后它会工作。
I was using express 3.x for some time. 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.
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.
What you need to do is to run:
$ npm install -g express-generator
Then it will work.
这篇关于Express JS 4.0命令行工具不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文