輸入vue init webpack first-vue
問題:vue-cli * faild to download repo vuejs-templates/webpack:unable to verify the first certificate.
解決辦法:
1.去github上下載要初始化的模板 https://github.com/vuejs-templates/webpack
或者直接用git去clone你要的模板。
2.將下載好的模板解壓。git clone的不用解壓。
3.將文件夾放到c:administrator/.vue-templates文件夾下面
4.執行 vue init webpack project --offline (project是項目名)
就這些,親測有用,希望幫到大家。。
原地址:http://blog.csdn.net/qq_15243963/article/details/78779111