1. npm 使用注意事項:
a. node.js 使用 v8.16.0 版本,使用 v10 版本會有各種莫名其妙的報錯
b. 開箱先改淘寶鏡像:
npm config set registry https://registry.npm.taobao.org
c. 解決下載 node-sass 報錯:
npm set sass_binary_site=https://npm.taobao.org/mirrors/node-sass/
d. npm config 相關命令:
npm config set <key> <value>
npm config get [<key>]
npm config delete <key>
npm config list [--json]
npm config edit
npm set <key> <value>
npm get [<key>]
e. 其它實用命令:
npm cache clean --force
1. mock 數據修改為使用自己的后台接口
2. 修改 axios 的 baseURL 配置注意事項
3. 解決開發環境啟動時打開兩次頁面問題
