npm install express-generator not installing express
Looking at this line from your output for npm install -g express generator
/home/username/npm/bin/express -> /home/username/npm/lib/node_modules/express-generator/bin/express
Your npm is installing global modules within your home directory and it's placing binary links in the /home/username/npm/bin
directory, so you'll need to add this to your path. Add this to your .bashrc
:
export PATH=$HOME/npm/bin:$PATH
Excuse me for an obvious question, but I have to be sure - do you run $ npm install
in the directory that contains the package.json file? After you create the app with express --ejs flapper-news
, you are supposed to cd flapper-news
before npm install
, did you?