npm旧淘宝镜像过期,更换新淘宝镜像
1. 清空缓存
npm cache clean --force
2.设置新淘宝镜像
npm config set registry https://registry.npmmirror.com/
3.查看npm镜像
npm config get registry
只要思想不滑坡,办法总比困难多!
npm cache clean --force
npm config set registry https://registry.npmmirror.com/
npm config get registry