C:\Users\Administrator>cnpm install -g webpack
C:\Users\Administrator>cnpm install -g vue
//vue命令行工具
C:\Users\Administrator>cnpm install -g vue-cli
C:\Users\Administrator>vue -V
2.7.0
安装完成,新建项目:
html\vueJs>vue init webpack es6
This will install Vue 2.x version of the template.
For Vue 1.x use: vue init webpack#1.0 es6
? Project name firstvue
? Project description A Vue.js project
? Author lc
? Vue build standalone
? Use ESLint to lint your code? No
? Setup unit tests with Karma + Mocha? Yes
? Setup e2e tests with Nightwatch? Yes
vue-cli · Generated "es6".
To get started:
cd es6
npm install
npm run dev
Documentation can be found at https://vuejs-templates.github.io/webpack