user7366497
user7366497

Reputation:

'express' is not recognized as an internal or external command, operable program or batch file

I did npm install -g express and still for some reason getting this error. Is anyone having the same issue?

Upvotes: 1

Views: 1740

Answers (3)

SRJ
SRJ

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

Bharathvaj Ganesan
Bharathvaj Ganesan

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

user7366497
user7366497

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

Related Questions