# Vue 创建
# 创建项目
WARNING
- 上下 控制选择
- Enter 确认选择
# 创建
选择 vue2 一键生成项目
vue create xxx // xxx 为项目名称
// 显示以下内容
Vue CLI v5.0.8
? Please pick a preset: (Use arrow keys)
> Default ([Vue 3] babel, eslint)
Default ([Vue 2] babel, eslint)
Manually select features
选择 Manually select features
vue create xxx // xxx 为项目名称
// 显示以下内容
Vue CLI v5.0.8
? Please pick a preset: Manually select features
? Check the features needed for your project: (Press <space> to select, <a> to toggle all, <i> to invert selection, and
<enter> to proceed)
(*) Babel
( ) TypeScript
( ) Progressive Web App (PWA) Support
(*) Router
>(*) Vuex
( ) CSS Pre-processors
(*) Linter / Formatter
( ) Unit Testing
( ) E2E Testing
Vue CLI v5.0.8
? Please pick a preset: Manually select features
? Check the features needed for your project: Babel, Router, Vuex, Linter
? Choose a version of Vue.js that you want to start the project with
3.x
> 2.x
# 运行
cd xxx // xxx 为项目名称
npm run serve // 运行项目