npx 创建项目报错:
淘宝镜像过期,由 registry.npm.taobao.org 切换到了 registry.npmmirror.com 。
解决方案:
1.查看淘宝镜像是否过期:npm config list
2.如已过期,清空缓存 npm cache clean --force
3.修改镜像: npm config set registry https://registry.npmmirror.com
npx 创建项目报错:
淘宝镜像过期,由 registry.npm.taobao.org 切换到了 registry.npmmirror.com 。
解决方案:
1.查看淘宝镜像是否过期:npm config list
2.如已过期,清空缓存 npm cache clean --force
3.修改镜像: npm config set registry https://registry.npmmirror.com