简体   繁体   中英

Express-generator is not working after installing globally

I install express generator globally by running

npm install express-generator -g

after successful installation, I tried to test it by running

express -h

I got an error saying

Cannot find module 'commander' Require stack: - /usr/lib/nodejs/express-generator/bin/express

See a screenshot:

在此处输入图像描述

Just do npm i -g commander to install commander

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