1.npm intall报error cb() never called
解决:清理缓存
npm cache verify或npm cache clean -f
2.npm/yarn报错there appears to be trouble with your network connection. retrying
解决:更换淘宝镜像,添加超时时间,去掉代理proxy
yarn config set registry https://registry.npm.taobao.org
yarn install --network-timeout 100000
npm config rm proxy
npm config rm https-proxy