按照网上教程,(我想自动创建express项目框架)我已经在mac上执行了以下两个命令:sudo npm install -g expresssudo npm install -g express-generate安装过程没有报错。为什么还是提示找不到express命令?
问题关闭,已解决
业精于勤,荒于嬉;行成于思,毁于随。
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.
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
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.
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