网站首页 > 教程文章 正文
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
猜你喜欢
- 2024-12-01 Zabbix Agent安装部署
- 2024-12-01 php composer国内镜像
- 2024-12-01 给R语言RStudio添加阿里云镜像源
- 2024-12-01 LINUX 国内源以及镜像源更换方法
- 2024-12-01 tekton的最新版本安装教程和发布镜像的示例
- 2024-12-01 【Python大语言模型系列】云服务器部署dify大模型应用开发平台
- 2024-12-01 docker配置阿里镜像加速器
- 2024-12-01 Docker配置-阿里云镜像仓库
- 2024-12-01 K8s集群
- 2024-12-01 利用阿里云镜像加速器对Docker镜像源进行加速
- 最近发表
- 标签列表
-
- location.href (44)
- document.ready (36)
- git checkout -b (34)
- 跃点数 (35)
- 阿里云镜像地址 (33)
- qt qmessagebox (36)
- md5 sha1 (32)
- mybatis plus page (35)
- semaphore 使用详解 (32)
- update from 语句 (32)
- vue @scroll (38)
- 堆栈区别 (33)
- 在线子域名爆破 (32)
- 什么是容器 (33)
- sha1 md5 (33)
- navicat导出数据 (34)
- 阿里云acp考试 (33)
- 阿里云 nacos (34)
- redhat官网下载镜像 (36)
- srs服务器 (33)
- pico开发者 (33)
- https的端口号 (34)
- vscode更改主题 (35)
- 阿里云资源池 (34)
- os.path.join (33)