Linux修改npm的镜像源为淘宝镜像

起因:使用官方镜像源下载软件包速度太慢

1.查看npm当前镜像源命令

复制代码
npm get registry

执行结果

2.还原为官方镜像源命令

复制代码
npm config set registry https://registry.npmjs.org/

3.修改为淘宝镜像命令

复制代码
npm config set registry https://registry.npmmirror.com 

执行结果

相关推荐
叶帆1 天前
【YFIOs】Docker方式部署
运维·docker·容器
小猿姐1 天前
Clickhouse Kubernetes Operator 实测:哪种方案更适合生产?
运维·数据库·kubernetes
彩色的黑'''1 天前
[root@localhost ~]#,Linux系统的命令提示符为啥现在变成-bash-4.2#了,哪里设置的
linux·运维·bash
树下水月1 天前
文件分片上传接口(Easyswoole)被nginx拦截,并返回状态码400和408的抓包排查过程
运维·nginx
源远流长jerry1 天前
Linux 网络发送机制深度解析:从应用到网线
linux·服务器·网络·网络协议·tcp/ip
南境十里·墨染春水1 天前
linux学习进展 shell编程
linux·运维·学习
goyeer1 天前
【ITIL4】32服务实践 - 问题管理(Problem Management)
linux·运维·服务器·企业数字化·it管理·itil·it治理
怀旧,1 天前
【Linux网络编程】8. 网络层协议 IP
linux·网络·tcp/ip
RH2312111 天前
2026.5.12 Linux
java·linux·数据结构
cen__y1 天前
Linux11(网络编程)
linux·运维·服务器·c语言·网络·网络协议·tcp/ip