vue-cli的搭建

1.安装node。

2.node -v  (查看node版本)。

3.npm install  -g vue-cli  (安装vue-cli)。

4.vue  (运行一下vue命令)。

5.vue list   (列出可用的模板)。

6.vue init webpack sell     (使用webpack模板起个名字,此处sell是可以随意起的)。

7.此时会弹出命令   ?Project name  eleme   按回车键。

8. ?Project description(A vue.js project)      sell app      (此处是添加描述,暂时添加的是sell app)。

9. ?Author (******.com)           (自动把作者名称加进去了,按回车键就好)。

10. ?Use Eslint to lint your code (Y/N)      y     (用eslint的代码风格检查器,需要,输入y)。

11. ?Pick an Eslint preset                 (按回车键就好)。

12. ?Setup unit tests with karma + Mocha?      n(输入n)。

13. ?Setup e2e tests with Nightwatch?(y/n)       n(输入n)。

14. cd sell   (进入到sell 目录)。

15.npm install

16. npm run dev

猜你喜欢

转载自blog.csdn.net/wx836/article/details/78913987