Vue new project directory

Preparatory

The first step: Baidu search Node. js download node, be a fool installation

Step 2: Use cmd (command line control program), check whether the installation was successful

Input: node -v

           asl -v

Use Taobao NPM mirror

We all know that domestic direct use of official mirror npm is very slow, is recommended to use Taobao NPM mirror.

$ Altitude install -g cnpm --registry = https: //registry.npm.taobao.org

So that you can use cnpm command to install the module

Step 3: Install vue-cli

cnpm install vue-cli -g // global installation vue-cli

See if vue-cli success, can not check vue-cli, you need to check vue

Preparatory work is ready to begin creating project

Selected path, the new project vue, vue init webpack "Project Name"

cd "Project Name"

Start project npm run dev

Create a project is completed!

Guess you like

Origin www.cnblogs.com/WEB_zhumeng/p/12050004.html