输入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