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:
npm@1.4.3 /Users/Adam/.nvm/v0.10.26/lib/node_modules/npm
Using mac osx 10 with zsh.
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.