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
Step 2: Switch to you 要创建项目的目录
, then use the command to create the project.
vue create xxx
select vue2
Step 3: Start the project
cd 文件夹名
npm run serve