美文网首页
18.vue cli 的使用

18.vue cli 的使用

作者: 最爱喝龙井 | 来源:发表于2019-11-06 16:30 被阅读0次

vue cli的使用

首先,安装vue cli

npm i @vue/cli -g

注意:这里安装的是vue cli3,如果我们想要使用vue cli2的话,需要在加一条命令

npm i @vue/cli-init -g

然后,我们先采用cli2的方式,来搭建脚手架

PS E:\goodStudy\VUE> vue init webpack vuecli2test

? Project name vuecli2test //项目名称
? Project description test vue cli2   //项目描述
? Author 张亮 <1226941641@qq.com>  //项目作者
? Vue build standalone  //项目使用runtime-only还是runtime-compiler
? Install vue-router? No //vue路由
? Use ESLint to lint your code? Yes  //是否使用代码格式检测工具
? Pick an ESLint preset Standard
? 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) (Use arrow keys)
> Yes, use NPM //用哪种方式装包
  Yes, use Yarn
  No, I will handle that myself
image.png

相关文章

网友评论

      本文标题:18.vue cli 的使用

      本文链接:https://www.haomeiwen.com/subject/cjncbctx.html