Reputation:
I did npm install -g express
and still for some reason getting this error. Is anyone having the same issue?
Upvotes: 1
Views: 1740
Reputation: 49
I solved this similar issue by adding NPM global modules to my path variable.
Try add C:\Users<youruser>\AppData\Roaming\npm to your path.
Upvotes: 0
Reputation: 3194
run this:
sudo npm install -g express-generator
In express(version 4), command line tool isn't bundled together, so the express command won't be recognized until you install the express generator.
Upvotes: 0
Reputation:
Found out that express now wants you to use express-generator. So instead of npm install -g express
it is npm install -g express-generator
.
Upvotes: 1