Vue-cli scaffolding started

1. Install node.js

Download: http://nodejs.cn/download/

Test whether the installation is successful

Node - V detection installation package 
npm -v detection npm

 

2, installation webpack

npm install -g webpack
npm install  webpack-cli -g

Starting webpack 4.X, the global need to install webpack-cli

Test whether the installation is successful

webpack --version  || -v

3, the global installation vue-cli, enter the command in cmd

npm install - global rankings cli 
npm install -g @ view / cli    // 3.0 || npm install --global @ view / cli

Detecting whether the installation is successful

// Note that this is a capital V 
VUE -V

Open C: \ Users \ Andminster \ AppData \ under Roaming \ npm directory can see APPData is a hidden file, open open node_modules can see can see cli

4, with a vue-cli to build the project

Init Webpack Demo Vue    // 2.0 
Vue Create Demo        //     3.0

5, mounted reliance

npm install

6. Start project

npm run dev        //    2.0
npm run serve     // 3.0

ok!

The speed can not turn dark mirror Taobao

Image Setup command npm Taobao

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

Like a small partner can focus on my public number "front end as Uncle"

 

Guess you like

Origin www.cnblogs.com/qdwds/p/11706853.html