当前位置: 代码迷 >> 综合 >> 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

热度:81   发布时间:2023-12-10 13:08:47.0

执行命令报错

vue init webpack projectName

据说和ssl证书有关,查过资料,注释了一行配置

C:\Users\markren\AppData\Roaming\npm\node_modules\vue-cli\node_modules\_download@5.0.3@download

rejectUnauthorized: process.env.npm_config_strict_ssl !== 'false'

注释掉那一行就行了

 

  相关解决方案