Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

zsh: command not found: express

I installed node and npm and both work fine.

However, when I try to install express via npm install -g express I get:

zsh: command not found: express.

I Have tried adding various paths in my .zshrc file with no luck.

If I echo $path I get this:

Users/Adam/.nvm/v0.10.26/bin /usr/local/heroku/bin /Users/Adam/.rbenv/shims /usr/local/bin /usr/bin /bin /usr/sbin /sbin

If i run npm - prefix -g i get this:

[email protected] /Users/Adam/.nvm/v0.10.26/lib/node_modules/npm

Using mac osx 10 with zsh.

like image 760
Adam Bishti Avatar asked Apr 10 '14 21:04

Adam Bishti


1 Answers

it seems that you need to install express-generator too

sudo npm install -g express-generator

take a look at: http://expressjs.com/starter/generator.html

or: Express command not found

like image 93
djug Avatar answered Sep 22 '22 04:09

djug