I was using express 3.x for some time. The command line tool was working perfectly fine. I decided to update to 4.0 so that I can try it out and make old apps to 4.x compatible.
sudo npm install -g express
installed express perfectly fine, but when I try
exprsss -h
I get
bash: /usr/bin/express: No such file or directory
Is there anything I am doing wrong?
Express 4 seperates the generator from express.
What you need to do is to run:
$ npm install -g express-generator
Then it will work.
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.