Quickly build Vue-cli scaffolding

First, the console uses npm install Taobao mirror

First, check whether they have in accordance with the node.js, did not go according to the installation look

node --version: Enter the command console to see if you have installed node.js

Enter the command console to install Taobao Mirror: npm install  -g CNPM --registry = HTTPS: //registry.npm.taobao.org

After the successful installation instructions that can be used cnpm other documents required for the installation

Successful installation screenshot:

 

Second, the use of scaffolding cnmp installation Vue-cli

Command: cnpm i vue-cli -g

Tip: -g indicates overall installation, i is an abbreviation may be used install

After installation enter the command: vue --version to see if the installation was successful

Successful installation screenshot:

 

Third, after the installation to start creating our project

1. We want to create the directory under: I was d: \ mydemo \ project

2. Enter the command

Instruction: vue init webpack vue-cli-demo

Tips: webpack means that we are on the webpack

vue-cli-demo represent our project name can be freely modified

3. command execution

After the command will go to download the latest version

Then all of these enter on it, and then wait for a while

The need for routing, select y

Code specification, may be selected y

The need for unit testing, you can do n

Do not test also can n

You need to download anything, we can do first, choose a best

Then our vue-cli scaffolding project should be established,

 

 

 

 

Guess you like

Origin blog.csdn.net/weixin_44232136/article/details/90715401
Recommended