zsh: command not found: express

匿名 (未验证) 提交于 2019-12-03 01:23:02

问题:

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.

回答1:

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



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!