Zsh: command not found: express

I installed node and npm and both work fine.

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

zsh: command not found: express.

I tried adding various paths to my .zshrcfile with no luck.

If I echo $path, I get the following:

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 the following:

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

Using mac osx 10 with zsh.

+4
source share
1 answer

it seems that you also need to install an express generator

sudo npm install -g express-generator

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

or: Express command not found

+27
source

Source: https://habr.com/ru/post/1536007/


All Articles