优秀的编程知识分享平台

网站首页 > 技术文章 正文

npm配置阿里镜像库 阿里python镜像

nanyue 2024-12-30 05:59:48 技术文章 4 ℃

1、配置阿里云镜像源

#查看当前使用的镜像地址命令

npm config get registry

#设置阿里镜像源

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

这里要注意下,之前的镜像源地址 https://registry.npm.taobao.org/ 已经不能用了,这里要更改为新地址,新地址为 http://registry.npmmirror.com

详情参考:NPM镜像_NPM下载地址_NPM安装教程-阿里巴巴开源镜像站

2、如果后续需要切回npm默认源,执行以下命令

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

原文链接:https://blog.csdn.net/morecccc/article/details/137785890

最近发表
标签列表