문제

I'm new in node js, I'm triying to install globally express

npm i -g express

all completes, but when I enter express --help it says that it's not inside or outside command, however when i enter supervisor it runs OK. I looked into pathof express and there is no any .cmd file. If the problem is that. How should i fix it?

Please help.

도움이 되었습니까?

해결책

Installing npm install -g express will install express 4. Express 4 separates the generator from express. What you need to do is to run:

 $ npm install -g express-generator

Then it will work.

다른 팁

As stated in express Readme [1], you need to install express generator separately, using following command:

npm install -g express-generator@3

[1] - https://github.com/visionmedia/express/blob/master/Readme.md

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top