简体   繁体   English

zsh:找不到命令:express

[英]zsh: command not found: express

I installed node and npm and both work fine. 我安装了node和npm,两者都运行正常。

However, when I try to install express via npm install -g express I get: 但是,当我尝试通过npm install -g express我得到:

zsh: command not found: express. zsh:找不到命令:express。

I Have tried adding various paths in my .zshrc file with no luck. 我尝试在我的.zshrc文件中添加各种路径,但没有运气。

If I echo $path I get this: 如果我回显$path我得到这个:

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 - prefix -g我得到这个:

npm@1.4.3 /Users/Adam/.nvm/v0.10.26/lib/node_modules/npm

Using mac osx 10 with zsh. 使用mac osx 10和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 看看: http//expressjs.com/starter/generator.html

or: Express command not found 或: 找不到快速命令

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM