npm旧淘宝镜像过期,更换新淘宝镜像

1. 清空缓存

npm cache clean --force

2.设置新淘宝镜像

npm config set registry https://registry.npmmirror.com/

3.查看npm镜像

npm config get registry
posted on 2024-01-30 13:00  Steven_YF  阅读(288)  评论(0编辑  收藏  举报