解决方案:切换本地镜像源到淘宝镜像
npm config get registry
// https://registry.npmjs.org/ npm镜像源
npm config set registry https://registry.npmmirror.com
// 淘宝新的镜像源 原来的https://registry.npm.taobao.org已弃用
切换NPM包管理器的注册镜像源至淘宝镜像,
本文介绍了如何将NPM的默认注册镜像源从npmjs.org切换到淘宝镜像(npmmirror.com),因为原npm.taobao.org已弃用。使用`npmconfigsetregistry`命令进行配置。
解决方案:切换本地镜像源到淘宝镜像
npm config get registry
// https://registry.npmjs.org/ npm镜像源
npm config set registry https://registry.npmmirror.com
// 淘宝新的镜像源 原来的https://registry.npm.taobao.org已弃用
471