Express command not found

前端 未结 4 1817
执念已碎
执念已碎 2020-11-28 19:05

For some reason after installing Express globally on my machine with npm install -g express if I cd into a directory and try to run express I get t

4条回答
  •  情歌与酒
    2020-11-28 19:41

    I was having this challenge for a number of days. After deep search, I learned that one has to read every available resource especially from the parent source [in this case EXPRESSJS.COM]. Here is a quick fix.

    Beginning with version 4.0+ you don't necessarily need to install express-generator if you are running Node 8.2+. Simply run

    npx express-generator
    

    The express-generator will run just the way it runs when you run:express

    For more details see Getting Started

    Happy reading and research hours.

提交回复
热议问题