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
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.