# 以管理员身份运行CMD!
# 新建 vue 命令
vue init webpack ”项目名称“
属性 | 含义 |
---|---|
Project name (项目名称) | 项目名称(项目名称),直接回车即可 |
Project description (A Vue.js project) | 项目描述(vue.js项目),直接回车即可 |
Author | 作者,输入作者回车即可 |
Vue build (Use arrow keys) | Vue构建(使用箭头键),选择 Runtime + Compiler: recommended for most users 回车即可 |
Install vue-router? (Y/n) | 安装路由?,输入 y 回车即可 |
Use ESLint to lint your code?(Y/n) | 用ESLint来连接你的代码?,输入 n 回车即可 |
Set up unit tests (Y/n) | 建立单位测试(Y/n),输入 n 回车即可 |
Setup e2e tests with Nightwatch? (Y/n) | 输入 n 回车即可 |
Should we run npm install for you after the project has been created? (recommended) (Use arrow keys) | 我们应该在项目创建后为您运行’ npm安装’吗?(建议)(使用方向键),选择 Yes, use NPM 回车即可 |
# 当运行完时,它将安装所有依赖项,因此下一步是启动项目:
cd <项目名>
npm install
npm run dev