Last Updated: February 25, 2016
·
537
· nnennajohn

Fix Express.js in npm

With the recent release of express, after you run

npm install -g express

You might find that when you write

which express

it returns

express not found

Solution:

run:

npm install -g express-generator

you might have to run the following if you get errors depending on your write rights.

sudo npm install -g express-generator

I spent a whole day trying to fix this. Uninstall and reinstalled node a few times. Hopes this saves someone else some lost time.