Home > Article > Web Front-end > Quickly solve the problem that vue-cli cannot initialize the webpack template
Below I will share with you a quick solution to the problem that vue-cli cannot initialize the webpack template. It has a good reference value and I hope it will be helpful to everyone.
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 github https://github.com/vuejs-templates/webpack
or use git to clone directly 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
The preparations are done
4. Then do whatever you have to do. Execute vue init under your project file
The above is what I compiled for everyone. I hope it will be helpful to everyone in the future.
Related articles:
Two solutions for Ajax opening a new window and being intercepted by the browser
Ajax submission form page Solution to refresh quickly
The above is the detailed content of Quickly solve the problem that vue-cli cannot initialize the webpack template. For more information, please follow other related articles on the PHP Chinese website!