vue-cli · Failed to download repo vuejs-templateswebpack
vue-cli · Failed to download repo vuejs-templates/webpack: tunneling socket could not be established, cause=connect ETIMEDOUT
公司使用内网,所以需要给npm、cnpm设置代理
在创建vue项目时,可能需要翻墙,所以报错如下:
解决方法:
下载webpack到本地,地址:GitHub - vuejs-templates/webpack: A full-featured Webpack + vue-loader setup with hot reload, linting, testing & css extraction.A full-featured Webpack + vue-loader setup with hot reload, linting, testing & css extraction. - GitHub - vuejs-templates/webpack: A full-featured Webpack + vue-loader setup with hot reload, linting, testing & css extraction.https://github.com/vuejs-templates/webpack