PS D:\app1\vscode-space\vue\10-webpack> vue init webpack vuecli2test
vuecli2test —— 项目文件夹名称,不可有中文,不能大写
报错: vue-cli · Failed to download repo vuejs-templates/webpack: connect ETIMEDOUT 13.229.188.59:443
网不行,template是从GitHub上下载的
执行后
? Project name vuecli2test ----项目名称,默认与项目文件夹名称相同,不能大写
? Project description a vuecli2 test project — 项目描述
? Author cicoBi <e1710370096@126.com> ----作者 默认使用gitconfig中定义的
? Vue build (Use arrow keys) ---- 后续构建项目用哪个构建
> Runtime + Compiler: recommended for most users --暂时选这个
Runtime-only: about 6KB lighter min+gzip, but templates (or any Vue-specific HTML) are ONLY allowed in .vue files - render functions are required elsewhere --后续项目更多用这个
? Install vue-router? (Y/n) n ----- 是否安装路由
? Use ESLint to lint your code? (Y/n) n —是否使用某种规范,用于规范js代码
? Set up unit tests (Y/n) n ----是否进行单元测试
? Setup e2e tests with Nightwatch? (Y/n) n — end to end 端到端测试
安装Nightwatch,是一个利用selenium或webdriver或phantomjs等进行自动化测试的框架
? Should we run npm install
for you after the project has been created? (recommended) (Use arrow keys) -----后续用什么管理项目
> Yes, use NPM —— 使用npm
Yes, use Yarn —— 使用yarn
No, I will handle that myself