Reputation: 3731
I'm having trounble with installing express
. After I do npm install express
, express
is still not visible. I.e. I'm unable to do express appname
. I'm running Win7. What is done incorrectly?
UPD. I'm following this tutorial
Upvotes: 1
Views: 2741
Reputation: 374
since express 4.0 the CLI tools are not part of the main express package anymore. if you want to have the generator you have to install it separately:
npm install -g express-generator
Upvotes: 7
Reputation: 3774
If you want to run the :
express appname
command, you should install express the following way :
sudo npm install -g express
or just:
npm install -g express
if you are not on a UNIX system. Otherwise if you already did an :
npm install express
you can run this command:
./node_modules/express/bin/express appname
from your project's root directory.
Upvotes: 1