Home Web Front-end JS Tutorial Quickly solve the problem that vue-cli cannot initialize the webpack template

Quickly solve the problem that vue-cli cannot initialize the webpack template

May 25, 2018 pm 05:21 PM
vue-cli web initialization

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 template you just downloaded, such as: webpack, or webpack-simple, etc.> (project-name) –offline

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

Ajax post request jump page

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!

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

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What to do if the dynamic link library initialization routine fails What to do if the dynamic link library initialization routine fails Dec 29, 2023 am 10:30 AM

What to do if the dynamic link library initialization routine fails

How to initialize the computer in win7 How to initialize the computer in win7 Jan 07, 2024 am 11:53 AM

How to initialize the computer in win7

Fix Unable to initialize graphics system error on PC Fix Unable to initialize graphics system error on PC Mar 08, 2024 am 09:55 AM

Fix Unable to initialize graphics system error on PC

How to reset win7 network settings How to reset win7 network settings Dec 26, 2023 pm 06:51 PM

How to reset win7 network settings

Using Jetty7 for Web server processing in Java API development Using Jetty7 for Web server processing in Java API development Jun 18, 2023 am 10:42 AM

Using Jetty7 for Web server processing in Java API development

C++ program initialization dictionary C++ program initialization dictionary Sep 09, 2023 pm 07:01 PM

C++ program initialization dictionary

How to implement form validation for web applications using Golang How to implement form validation for web applications using Golang Jun 24, 2023 am 09:08 AM

How to implement form validation for web applications using Golang

How to enable administrative access from the cockpit web UI How to enable administrative access from the cockpit web UI Mar 20, 2024 pm 06:56 PM

How to enable administrative access from the cockpit web UI

See all articles