码迷,mamicode.com
首页 > 其他好文 > 详细

express@4.0.*

时间:2014-10-26 22:51:58      阅读:212      评论:0      收藏:0      [点我收藏+]

标签:http   io   ar   strong   sp   on   cti   bs   ad   

$ sudo npm install -g express the installation goes fine. But when I try to create a project with express as $ express myProject I get an error saying

    : The program ‘express‘ is currently not installed. You can install it by typing: sudo apt-get install node-express

 

The new version of Express (4.0) does not itself have a bin folder. You have to install express-generator to get the setup functionality.

You are not doing anything wrong. Express has just changed the way it works. Have a look at this answer.

With Express 4, the application generator was removed and is now available as ‘express-generator.‘ So you need to npm install -g express-generator instead.

 

express@4.0.*

标签:http   io   ar   strong   sp   on   cti   bs   ad   

原文地址:http://www.cnblogs.com/yiliweichinasoft/p/4052861.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!