安装npm install -g @vue/cli
拉取2.X版本
npm install -g @vue/cli-init
创建项目
npm init webpack my-project
? Project name vuecli2test //创建的项目名称
? Project description simple vue2.x test //描述信息
? Author shuang <songshuangzhang@sina.com> //邮箱
? Vue build standalone //打包方式
? Install vue-router? Yes //是否添加路由
? Use ESLint to lint your code? Yes //是否使用规范
? Pick an ESLint preset none //使用规范对应的网站
? Set up unit tests Yes //是否添加单元测试
? Pick a test runner noTest
? Setup e2e tests with Nightwatch? No
? Should we run `npm install` for you after the project has been created? (recommended) npm
vue-cli · Generated "vuecli2test".