[Vue] Vue-cli (scaffolding) installation and configuration (step by step graphic)

1. Right mouse button [icon in the lower left corner], run, cmd, OK

2. To make a Taobao mirror, enter: npm config set registry https://registry.npm.taobao.org, press Enter

3. Install, enter: npm install -g @vue/cli , press Enter

If there is a stuck situation in the middle, just hit enter, the following picture will appear, the installation is successful

 4. Enter vue, and the following picture will pop up, indicating that the installation is successful!

Note: If it does not appear, close the cmd window, and then enter from there, enter vue to try.

 5. Create a project in a scaffolding environment

1. Create or open a project folder

 2. Enter: cmd in the address bar and press Enter

 3. Create a project name, vue_demo is the project name

 4. Press the up and down arrows, select vue 2, and press Enter

 5. This appears, indicating that the project was created successfully, and a vue_demo folder was also obtained.

6. Open the service that creates the project (similar to opening IIS)

1. Open the folder where vue_demo was created, enter in the address bar: CMD

 2. Enter cmd command line mode

 3. Input: npm run serve

 4. The following figure appears, you can access the files in the scaffolding project

 5. Enter the URL of port 8080 in the address bar

 

Guess you like

Origin blog.csdn.net/dxnn520/article/details/123280923