Vue-cli 初级介绍
来源:互联网 发布:sql 怎么给表取别名 编辑:程序博客网 时间:2024/06/05 18:41
$ npm install -g vue-cli 全局安装脚手架$ vue init webpack my-project 创建一个项目
? Project name one 一般直接回车 ? Project description A Vue.js project 项目说明? Author wxj 开发者? Vue build standalone 默认回车? Install vue-router? Yes 个人建议Y? Use ESLint to lint your code? No 是否启用eslint检测规则,个人建议不使用? Set up unit tests No 是否创建单元测试? Setup e2e tests with Nightwatch? No ? Should we run `npm install` for you after the project has been created? (recommended) npm
$ cd my-project$ npm install 如果上边出现Should we run `npm install` for you after the project has been created? (recommended) npm这个就可以不需要执行$ npm run dev 执行之后,显示Your application is running here: http://localhost:8080
官网网址https://vuejs-templates.github.io/webpack/
阅读全文