1,换成淘宝源; npm config set registry https://registry.npm.taobao.org/ 检查是否修改成功 npm config get registry 2,安装vue脚手架 npm install -g vue-cli 3,建一个项目 vue init webpack youDemo 配置列表: E:workspacejc_testvue λ vue init webpack fjc_vue ? Project name fjc_vue ? Project description A Vue.js project ? Vue build standalone ? Install vue-router? Yes ? Use ESLint to lint your code? No ? Set up unit tests No ? Setup e2e tests with Nightwatch? No ? Should we run `npm install` for you after the project has been created? (recommended) npm vue-cli · Generated "fjc_vue". 4,项目跑起来 npm run dev 5, npm run build 就创建了一个dist文件,压缩后的文件