使用淘宝镜像
npm config set registry https://registry.npm.taobao.org –global
npm config set disturl https://npm.taobao.org/dist –global
npm install -g @vue/cli
下载资源包
npm install vue-resource
使用资源包
import VueResource from “vue-resource”;
Vue.use(VueResource);
创建Vue项目:(有脚手架)
1.dos框中cd到该文件夹;
2.vue init webpack ******;
3. USe ESLint to lint your code? No
Set up unit tests No
Setup e2e tests with Nightwatch?No
也可使用图形化界面 vue ui