vue environment to build and create the project

Installation Environment node: node environment Download: https: //nodejs.org/zh-cn/download/, you can download and install the operating system version in accordance with the corresponding

Check the corresponding node and npm version, if there is no corresponding version number appears after installation represents the installation fails

 

 

 

Before installing ensure vue-cli (vue scaffolding) installed vue-cli is installed first webpack

webpack installation command: npm install webpack -g 

Vue-cli to start the installation after installation

npm install -g vue-cli

-G is representative of the overall installation

vue-cli After installing you can start to create a project, create an empty folder on your computer into the command line

Enter vue init webpack todolist (todolist represents the project name)

 

 

 

 

 

 Create a project, speed is not good to wait a long time. . . .

 

 

Creating success

 

 

 

 

Enable Project:

 

 

 Visit http: // localhost: 8080

 

 

 

 

Use vscode Development

Download vscode address: https: //code.visualstudio.com/

Download Chinese plug-in

 

 

 Why make use of the terminal in vscode here to download cnpm

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

 

 

vscode where you can also install Vetur, vue and other plug-ins.

 

Guess you like

Origin www.cnblogs.com/dongml/p/11478965.html