当前位置:网站首页>How to solve the problem of slow downloading from foreign NPM official servers—— Teach you two ways to switch to Taobao NPM image server
How to solve the problem of slow downloading from foreign NPM official servers—— Teach you two ways to switch to Taobao NPM image server
2022-07-06 04:07:00 【Concision.】
- Mirror image (Mirroring) It's a form of file storage , The data on one disk has an identical copy on another disk, that is, the image .
TaoBaoSet up a server in China , The package on the foreign official server Sync To domestic servers , And then provide the service of the next package in China , This greatly improves the speed of downloading packets .
Method 1
Switch npm The next package image source : Execute the following command at the terminal
- perform
npm config get registryView the current package image source - perform
npm config set registry=http://registry.npm.taobao.org/Switch the image source of the next package to Taobao image source . - perform
npm config get registryCheck if the switch is successful
Method 2
In order to switch the image source of the next package more conveniently , We can install nrm This gadget , utilize nrm Terminal commands provided , You can quickly view and switch the image source of the next package .
- Carry out orders
npm i nrm -g, adopt npm Package manager , take nrm Install as a globally available tool - Carry out orders
nrm ls, View all available mirror sources - Carry out orders
nrm use taobao, Switch the image source of the next package to taobao Mirror image .

边栏推荐
- 判断当天是当月的第几周
- Path of class file generated by idea compiling JSP page
- C#(二十七)之C#窗体应用
- IDEA编译JSP页面生成的class文件路径
- Fundamentals of SQL database operation
- 在字节做测试5年,7月无情被辞,想给划水的兄弟提个醒
- [adjustable delay network] development of FPGA based adjustable delay network system Verilog
- Prime protocol announces cross chain interconnection applications on moonbeam
- Custom event of C (31)
- Scalpel like analysis of JVM -- this article takes you to peek into the secrets of JVM
猜你喜欢

Path of class file generated by idea compiling JSP page

记一次excel XXE漏洞

C language -- structs, unions, enumerations, and custom types

C#(二十八)之C#鼠标事件、键盘事件

How to standardize the deployment of automated testing?

mysql关于自增长增长问题

Network security - Security Service Engineer - detailed summary of skill manual (it is recommended to learn and collect)

Stc8h development (XII): I2C drive AT24C08, at24c32 series EEPROM storage

STC8H开发(十二): I2C驱动AT24C08,AT24C32系列EEPROM存储

WPF效果第一百九十一篇之框选ListBox
随机推荐
asp. Core is compatible with both JWT authentication and cookies authentication
阿里测试师用UI自动化测试实现元素定位
[disassembly] a visual air fryer. By the way, analyze the internal circuit
STC8H开发(十二): I2C驱动AT24C08,AT24C32系列EEPROM存储
Basic knowledge of binary tree, BFC, DFS
10 exemples les plus courants de gestion du trafic istio, que savez - vous?
Yyds dry goods inventory hcie security Day11: preliminary study of firewall dual machine hot standby and vgmp concepts
Take you to wechat applet development in 3 minutes
Simple blog system
Comprehensive ability evaluation system
Introduction to data types in MySQL
User datagram protocol UDP
SSTI template injection explanation and real problem practice
Serial port-rs232-rs485-ttl
cookie,session,Token 这些你都知道吗?
Web components series (VII) -- life cycle of custom components
WPF效果第一百九十一篇之框选ListBox
Interface idempotency
DM8 archive log file manual switching
2/12 didn't learn anything