简体   繁体   中英

node.js: can't install express properly

I'm having trounble with installing express . After I do npm install express , express is still not visible. Ie I'm unable to do express appname . I'm running Win7. What is done incorrectly?

UPD. I'm following this tutorial

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

see here

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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