vue-cli initializes webpack template error

php中世界最好的语言
Release: 2018-06-15 14:19:02
Original
1588 people have browsed it

This time I will bring you vue-cli initialization webpack template error. What are the precautions for solving vue-cli initialization webpack template error? 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 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 (project-name) –offline

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 use IP to access the local development environment

How to use Node static resource server

The above is the detailed content of vue-cli initializes webpack template error. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn