問題:
E:\BladeXDB\Saber>yarn run serve
yarn run v1.13.0
$ vue-cli-service serve
'vue-cli-service' 不是內部或外部命令,也不是可運行的程序或批處理文件。
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
解決方法 :
E:\BladeXDB\Saber>yarn install
下載守Saber源碼后,需要安裝程序運行的依賴,所以需要先運行yarn install 安裝依賴,安裝完后,在根目錄下面會多出文件夾node_modules
再次運行,OK!
PS:
經過多次測試,發現運行還是報錯,錯誤信息參見
https://www.cnblogs.com/edrp/p/11362589.html
需要執行:cnpm install node-sass --save-dev
