node.js - 为什么已经安装全局express 了还是说找不到这个命令?
迷茫
迷茫 2017-04-17 15:24:43
0
3
483

按照网上教程,(我想自动创建express项目框架)我已经在mac上执行了以下两个命令:
sudo npm install -g express
sudo npm install -g express-generate
安装过程没有报错。为什么还是提示找不到express命令?

问题关闭,已解决

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(3)
刘奇

The package name of express’s scaffolding generation is express-generator. Please change the spelling and try again.

迷茫

Try to see if other Npm packages can be executed, such as webpack. If not, there may be a problem with your Node installation.

Ty80

http://www.expressjs.com.cn/s...

If there is a permission problem during execution, add sudo to confirm that there is no problem with execution, and if command not found still exists,

It’s a matter of environment variables.

Express is installed under /usr/local/bin on Mac. Please check if this path is not in your Path

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template