express:安装express-generator @ 4后找不到命令

时间:2018-10-17 19:13:39

标签: node.js express

每次在安装express-generator ..

之后,每次键入express-h都会出错。
roush@DESKTOP-E5Q8F9C MINGW64 /e/rpt/shopping-cart
$ npm install -g express-generator
C:\Users\roush\AppData\Roaming\npm\express -> C:\Users\roush\AppData\Roaming\npm\node_modules\express-generator\bin\express-cli.js
+ express-generator@4.16.0
updated 1 package in 2.019s

roush@DESKTOP-E5Q8F9C MINGW64 /e/rpt/shopping-cart
$ express
bash: express: command not found

roush@DESKTOP-E5Q8F9C MINGW64 /e/rpt/shopping-cart
$ npm install -g express-generator@4
C:\Users\roush\AppData\Roaming\npm\express -> C:\Users\roush\AppData\Roaming\npm\node_modules\express-generator\bin\express-cli.js
+ express-generator@4.16.0
updated 1 package in 1.42s

roush@DESKTOP-E5Q8F9C MINGW64 /e/rpt/shopping-cart
$ express
bash: express: command not found

0 个答案:

没有答案