清空缓存
npm cache clean --force
安装cnpm
npm install -g cnpm --registry=https://registry.npm.taobao.org(一直报错)
找回缺失的包
npm install
临时使用TB
npm --registry https://registry.npm.taobao.org install express
持久使用TB
npm config set registry https://registry.npm.taobao.org
查看是否成功
npm config get registry
恢复使用
npm config set registry https://registry.npmjs.org