站长邮箱:rocky@bit.ac.cn

 ① 设置镜像源

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

② 验证是否生效

npm config get registry

③ 恢复默认镜像源

npm config set registry https://registry.npmjs.org

0已赞

回顶部