Skip to content

https://cli.vuejs.org/?spm=5176.28103460.0.0.297c3da2iCLlNL

安装

shell
npm install -g @vue/cli --registry=https://registry.npm.taobao.org
npm i -g @vue/cli-init --registry=https://registry.npm.taobao.org

创建项目

shell
vue create xxxx
# OR
vue ui
# or 
vue init webpack xxxx

示例

bash
vue init webpack visual_data

输出

bash
? Project name visual_data
? Project description A Vue.js project
? Author xxx xxx
? Vue build standalone
? Install vue-router? Yes
? Use ESLint to lint your code? Yes
? Pick an ESLint preset Standard
? Set up unit tests Yes
? Pick a test runner jest
? Setup e2e tests with Nightwatch? Yes
? Should we run `npm install` for you after the project has been created? (recommended) npm

   vue-cli · Generated "visual_data".