0
点赞
收藏
分享

微信扫一扫

【采坑分享】npm login/publish/whoami失败采坑,解决npmERR426、ETIMEDOUT、ECONNREFUSED等错误

穿裙子的程序员 2023-12-16 阅读 39

nrm是什么?

  1. 介绍 nrm(npm registry manager) 是 npm 的镜像源管理工具. 有时候国外资源太慢,使用 nrm 可以快速的在 npm 源之间切换

  2. 安装 npm install -g nrm

  3. 基本使用

  • 查看可选择的源 nrm ls

  • 切换到对应的镜像源 nrm use 对应的镜像

  • 删除镜像源 nrm del 名字

  • 增加镜像源 nrm add registry http://registry.npm.frp/trmap.cn/

  • 测试镜像源速度 nrm test

  • 测试当前源速度 nrm test xxx

nrm的使用

举报

相关推荐

0 条评论