npm install -g @vue/cli
npm uninstall -g @vue/cli
npm install -g vue-cli
npm uninstall -g vue-cli
vue creat my_project
vue init webpack my_project
Project name 项目名称,直接回车用my_project
Project description 项目详情
Author 作者
Vue build 回车 standalone
Install vue-route 后面可以自己安装
EXLint 编写js代码的规范,公司可能严格y,其他可以n
unit text 单元测试,公司可能要y
e2e test end to end 端到端的测试,通常安装Nightwatch自动化测试框架
project initialization finished!
说明创建成功
过程中可能有WARN但是不影响我们使用