vue的開發(fā)環(huán)境
https://www.cnblogs.com/dwj88/p/7606224.html
1.安裝webpack: npm install -g webpack
npm install -g webpack
2.安裝vue-cli: vue-cli 是vue.js的腳手架厨钻,用于自動(dòng)生成vue.js模板工程的。
npm install -g vue-cli
vue init webpack project-name
npm的鏡像替換為淘寶
- 得到原本的鏡像地址: npm get registry (為https://registry.npmjs.org/)
npm get registry
- 設(shè)為淘寶鏡像
npm config set registry http://registry.npm.taobao.org
yarn config set registry http://registry.npm.taobao.org
- 換為原來的:npm config set registry https://registry.npmjs.org
npm config set registry https://registry.npmjs.org