express@4.0.*

$ 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.

 

posted @ 2014-10-26 22:01  未来动力  阅读(169)  评论(0编辑  收藏  举报