解决vue-cli · Failed to download repo vuejs-templates/webpack: connect ETIMEDOUT 20.205.243.166:443问题
可以使用离线的方式下载创建
拉取
git clone https://github.com/vuejs-templates/webpack.git
拉取成功之后就可以在桌面看到webpack的文件夹
并解压到本地用户目录下的 .vue-templates 目录下
重新使用离线方式初始化项目
来到文件目录下打开命令提示符
vue init webpack vue-demo --offline
选择自己需要的依赖及信息
Project name vue-demoProject description A Vue.js projectAuthor irenesia <123456789@123.com>Vue buildVue build standaloneInstall vue-router? YesUse ESLint to lint your code? NoSet up unit tests NoSetup e2e tests with Nightwatch? NoShould we run `npm install` for you after the project has been created? (recommended) npm vue-cli · Generated "vue-demo".
下载依赖中
# Installing project dependencies ...# ========================added 1319 packages from 677 contributors in 44.82s92 packages are looking for funding run `npm fund` for details# Project initialization finished!# ========================To get started: cd vue-demo npm run devDocumentation can be found at https://vuejs-templates.github.io/webpack
成功!!!