Vue (a) environment to build, create project

1. Install node and npm

Because the node has npm, so the direct installation node, configure the environment variables

Official website address: http: //nodejs.cn/download/

2. Check node is installed successfully, enter the name nde -v

3. In order to improve our efficiency, you can use Taobao Mirror: http://npm.taobao.org/

Input: npm install -g cnpm -registry = https: //registry.npm.taobao.org, npm mirror can be installed, and then after the npm place directly instead CNPM like.

4. Installation vue scaffolding vue-cli

cnpm install --global vue-cli

5. Create a project directory into the project, must be a last direction keys on the keyboard to select the last option, we do not need the system to automatically install dependent packages to help us, because the system is npm equipment, to be installed for a long time, I put the project behind the creation after entering the project with their own equipment will be much faster cnpm

vue init webpack vuemx #vuemx project name

  

The installation into the project directory dependencies

cnpm install

 

6. Start project

>cnpm run dev

 

 

Guess you like

Origin www.cnblogs.com/lystbc/p/11279995.html