npm配置:
node国内镜像站点
https://developer.aliyun.com/mirror/nodejs-release?spm=a2c6h.13651102.0.0.4da71b1156CnTV
registry.npmmirror.com 有时候会出问题,临时设置node源
cnpm config set registry https://registry.npmjs.org && cnpm install --unsafe-perm && cnpm run build:prod
拉取不到国外资源
临时设置
export HTTPS_PROXY=http://192.168.1.106:7890
npm config set proxy http://192.168.1.106:7890