Windows10环境下创建vue项目:

1、进入D盘,在D盘目录创建edutrainvue项目

   vue init webpack edutrainvue

        解決vue-cli · Failed to download repo vuejs-templates/webpack: tunneling socket could not be established, cause=getaddrinfo ENOTFOUND 10809报错问题

 

 2、解决方法:

设置所有代理为 null

  npm config set http-proxy null
  npm config set https-proxy null

  解決vue-cli · Failed to download repo vuejs-templates/webpack: tunneling socket could not be established, cause=getaddrinfo ENOTFOUND 10809报错问题

 


 使用本地的 webpack 在github 上下载 webpack 库到本地,webpack在github的厂库地址:https://github.com/vuejs-templates/webpack 。

git clone https://github.com/vuejs-templates/webpack

 解決vue-cli · Failed to download repo vuejs-templates/webpack: tunneling socket could not be established, cause=getaddrinfo ENOTFOUND 10809报错问题


再次创建一个vue项目 vue_admin

vue init D:/webpack vue_admin // D:/webpack github下载的本地webpack 路径

解決vue-cli · Failed to download repo vuejs-templates/webpack: tunneling socket could not be established, cause=getaddrinfo ENOTFOUND 10809报错问题

 

 解決vue-cli · Failed to download repo vuejs-templates/webpack: tunneling socket could not be established, cause=getaddrinfo ENOTFOUND 10809报错问题

 

 致谢

参考该文章写,感谢作者(https://www.jianshu.com/p/650fe2976fb9 )的分享 

 

 

相关文章:

  • 2021-07-30
  • 2021-09-25
  • 2021-04-21
  • 2021-07-14
  • 2021-06-15
  • 2022-01-23
  • 2022-12-23
  • 2021-09-27
猜你喜欢
  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
  • 2021-05-24
相关资源
相似解决方案