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

网友评论