npm 源管理

通过npm 回到国外资源去下载

nrm 可以到国内下载
npm install nrm -g
nrm ls ls是list的缩写,查看下载资源平台

zb@zbdeMacBook-Pro day2 % nrm ls

npm ---------- https://registry.npmjs.org/
yarn --------- https://registry.yarnpkg.com/
tencent ------ https://mirrors.cloud.tencent.com/npm/
cnpm --------- https://r.cnpmjs.org/
taobao ------- https://registry.npmmirror.com/
npmMirror ---- https://skimdb.npmjs.com/registry/

nrm test 测速度
zb@zbdeMacBook-Pro day2 % nrm test

  • npm ------ 1052ms
    yarn ----- 5007ms
    tencent -- 3358ms
    cnpm ----- Fetch Error
    taobao --- 3282ms
    npmMirror - 4437ms

nrm use taobao 使用哪个镜像

posted @   盘思动  阅读(61)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 【杭电多校比赛记录】2025“钉耙编程”中国大学生算法设计春季联赛(1)
历史上的今天:
2021-07-24 执行 composer --version 命令的时候报 Your requirements could not be resolved to an installable set of packages. 错误
2021-07-24 Mac 解决每次新建终端 都要重新运行 source ~/.bash_profile问题
2020-07-24 input nubmer类型 maxlength 属性不管用
2019-07-24 【微信小程序】wx.navigateBack() 携带参数返回
点击右上角即可分享
微信分享提示