user@user-PC MINGW32 /e/workspace
$ npm install vue-cli -g
C:\Users\user\AppData\Roaming\npm\vue -> C:\Users\user\AppData\Roaming\npm\node_modules\vue-cli\bin\vue
C:\Users\user\AppData\Roaming\npm\vue-list -> C:\Users\user\AppData\Roaming\npm\node_modules\vue-cli\bin\vue-list
C:\Users\user\AppData\Roaming\npm\vue-build -> C:\Users\user\AppData\Roaming\npm\node_modules\vue-cli\bin\vue-build
C:\Users\user\AppData\Roaming\npm\vue-init -> C:\Users\user\AppData\Roaming\npm\node_modules\vue-cli\bin\vue-init
+ vue-cli@2.8.2
updated 1 package in 52.187s
user@user-PC MINGW32 /e/workspace
$ vue
bash: vue: command not found
解决方法:
将以下路径加入到系统环境变量path中去
C:\Users\user\AppData\Roaming\npm