All things are difficult before they are easy

First we have to figure out how to play this thing. Go directly to Vuejs on Github and enter github.com/vuejs

Click vue-CLI Scaffolding

Note that this version is not available, select version V2 and drop down:

Once inside, we start with a regular logical document

$ npm install -g vue-cli
Copy the code
$ vue init <template-name> <project-name>
Copy the code
$ vue init webpack my-project
Copy the code

We have been stuck in this vue init step for a long time, some say network problems, some say proxy problems, and then various Baidu, various Google, various github issues look at the solution, anyway we have solved, so think about local installation.

Think local templates

vue init webpack demo
Copy the code

From our experience, we should change webpack to local directory, so where does this local directory come from? Let’s check out the link: github.com/vuejs/vue-c… Common templates in

Click Webpack to enter

Click to download:

Download the unzipped directory:

Get into the business

$ vue init webpack my-project
Copy the code
 $ vue init E:\Code\webpack-1.31.\webpack-1.31.\ v2webpack
Copy the code

And then happily the following familiar: