npm 设置镜像
npm 镜像 About 460 words查看当前镜像
npm config get registry
也可以使用npm config ls
,metrics-registry
显示的就是镜像的地址。
npm config ls
可用镜像
淘宝 npm 镜像
cnpmjs 镜像
- 搜索地址:https://cnpmjs.org
- 镜像地址:https://r.cnpmjs.org
临时使用
npm
安装时指定registry
,表示此次安装使用该镜像地址。
示例为安装Angular
脚手架,临时使用淘宝npm
镜像。
npm --registry https://registry.npm.taobao.org install -g @angular/cli
长久配置
配置成功后可再使用查看镜像命令,查询是否配置成功。
npm config set registry https://registry.npm.taobao.org
Views: 3,421 · Posted: 2021-06-13
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb/LiteNote扫描下方二维码关注公众号和小程序↓↓↓

Today On History
- Spring Boot OpenFeign 配置 HTTPS 客户端证书 Views: 1,182 · Posted: 2024-04-07
- VSCodium 代替 VS Code Views: 2,164 · Posted: 2023-04-07
- GitHub 提交了生产环境账号密码撤销办法 Views: 1,923 · Posted: 2022-04-07
- Java 中的锁 ReentrantLock Views: 2,002 · Posted: 2021-04-07
- Spring Boot 中的 ApplicationRunner 和 CommandLineRunner Views: 3,846 · Posted: 2020-04-07
- MySQL 命令行纵向打印 Views: 2,913 · Posted: 2019-04-07
- MySQL 存储 IP 地址 Views: 3,067 · Posted: 2019-04-07
- MySQL 字符串拼接 Views: 4,061 · Posted: 2019-04-07
- SQL 删除重复记录且保留一条 Views: 2,120 · Posted: 2019-04-07
- MySQL 查询重复数据 Views: 2,409 · Posted: 2019-04-07
- MySQL 自动更新时间戳及默认时间戳 Views: 5,642 · Posted: 2019-04-07
- MySQL 查询冗余索引 Views: 3,239 · Posted: 2019-04-07
- Ubuntu 系统升级 MySQL 版本 Views: 3,125 · Posted: 2019-04-07
- MySQL 查看运行的是哪份配置文件 Views: 2,750 · Posted: 2019-04-07
- MySQL 严格模式引起的问题 Views: 1,793 · Posted: 2019-04-07
- MySQL 最后一次查询花费时间 Views: 3,275 · Posted: 2019-04-07
- MySQL 查看配置文件路径 Views: 3,617 · Posted: 2019-04-07
- MySQL 时间相差了 13 小时 Views: 3,093 · Posted: 2019-04-07
- MySQL server has gone away Views: 3,122 · Posted: 2019-04-07
- MySQL 存储 Emoji 表情 Views: 2,009 · Posted: 2019-04-07
- MySQL 查看数据储存引擎 Views: 1,825 · Posted: 2019-04-07
- MySQL 查看有多少个连接 Views: 2,382 · Posted: 2019-04-07
- MySQL 数据库设置 root 密码 Views: 1,965 · Posted: 2019-04-07
- MySQL 开启日志 Views: 1,963 · Posted: 2019-04-07
- MySQL 事务 Views: 2,256 · Posted: 2019-04-07
- MySQL 视图 Views: 2,681 · Posted: 2019-04-07
- MySQL 内置函数之时间函数 Views: 2,533 · Posted: 2019-04-07
- MySQL 内置函数之数学函数 Views: 2,523 · Posted: 2019-04-07
- MySQL 内置函数之字符串函数 Views: 2,885 · Posted: 2019-04-07
- MySQL 外键 Views: 2,734 · Posted: 2019-04-07
- MySQL 分页 Views: 2,155 · Posted: 2019-04-07
- MySQL 排序 Views: 1,809 · Posted: 2019-04-07
- MySQL 分组 Views: 2,385 · Posted: 2019-04-07
Browsing
Refresh
Loading...
- HTML 使用 CSS 移除 input datalist 下拉箭头 Views: 1704
- Flowable UI 建模工具搭建 Views: 1369
- Elasticsearch 全文搜索 query->match Views: 2280
- minikube SSH 不能使用命令行快捷键解决方法 Views: 1583
- 设计模式之适配器模式 Views: 3392
- 软考-系统架构设计师:局部性原理 Views: 2861
- Prometheus+Grafana+mysqld_exporter 监控 MySQL Views: 2408
- Java 中的序列化 Serializable 和 Externalizable Views: 2426
- Linux chattr 命令 Views: 1644
- 走进 Rust:枚举 Views: 2905