vue-cli · Failed to download repo vuejs-templates/webpack:unable to verify the first certificate
vue-cli · Failed to download repo vuejs-templates/webpack:unable to verify the first certificate
·
这种情况是出现在:我们安装了vue2脚手架,初始化一个项目时报错!
解决方法:
- 进入vue-cli的这个目录vue-cli\node_modules\download
- 打开index.js
- 将这行注释: rejectUnauthorized: process.env.npm_config_strict_ssl !== 'false'
- 改为: rejectUnauthorized : false
然后重新初始初始化就行了
更多推荐
已为社区贡献1条内容
所有评论(0)