1.npm install cnpm -g --registry=https://registry.npm.taobao.org 2.cnpm install -g vue-cli 3.vue init webpack 4.cnpm install 5.npm run dev