Initialize scaffolding

1. Description

1. Vue scaffolding is a standardized development tool (development platform) officially provided by Vue
2. The latest version is 5.x
3. Documentation: https://cli.vuejs.org/zh/

2. Specific steps

Remark:

1. If the download is slow, please configure the npm Taobao mirror npm config set registry https://registry.npm.taobao.org
2. The Vue scaffolding hides all webpack-related configurations. If you want to view the specific webpack configuration, please execute:vue inspect > output.js

Step 1 (first execution only): Install @vue/cli globally

npm install -g @vue/cli

insert image description here

Step 2: Switch to you 要创建项目的目录, then use the command to create the project.

vue create xxx

insert image description here
select vue2
insert image description here

Step 3: Start the project

cd 文件夹名
npm run serve

insert image description here
insert image description here

Guess you like

Origin blog.csdn.net/qq_40713201/article/details/126397044