This time I will bring you how to deal with vue-cli being unable to initialize the webpack template, and what are the precautions to solve the problem that vue-cli cannot initialize the webpack template. The following is a practical case, let's take a look.
vue init webpack pro [Failed to download repo] [connect ETIMEDOUT 192.30.255.112]
reported this error
Some people say it is an agency problem. I don’t understand either, but this method works
1. Download the template to be initialized from githubhttps://github.com/vuejs-templates/webpack
Or directly use git to clone the template you want.
2. Unzip the downloaded template. There is no need to unzip the git clone.
3. Place the folder under the c:administrator/.vue-templates folder
Preparation workThat’s it.
4.Then Do whatever you have to do. Execute vue init under your project file
That’s it, I tested it and it works, I hope it’s useful Help everyone. . .
I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to other related articles on the php Chinese website!
Recommended reading:
How to turn off eslint code verification in the vue project
JS summary of traversing irregular multi-dimensional array methods
The above is the detailed content of vue-cli cannot initialize webpack template processing method. For more information, please follow other related articles on the PHP Chinese website!