Home > Web Front-end > JS Tutorial > body text

vue-cli cannot initialize webpack template processing method

php中世界最好的语言
Release: 2018-05-10 10:19:13
Original
1824 people have browsed it

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 (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 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!

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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template