当前位置:网站首页>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 .
TaoBao
Set 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 registry
View 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 registry
Check 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 .
边栏推荐
- Développement d'un module d'élimination des bavardages à clé basé sur la FPGA
- Redis (replicate dictionary server) cache
- Python book learning notes - Chapter 09 section 01 create and use classes
- Several important classes in unity
- MySQL master-slave replication
- C#(二十七)之C#窗体应用
- 《2022年中国银行业RPA供应商实力矩阵分析》研究报告正式启动
- Global and Chinese market of plasma separator 2022-2028: Research Report on technology, participants, trends, market size and share
- 判断当天是当月的第几周
- IDEA编译JSP页面生成的class文件路径
猜你喜欢
【PSO】基于PSO粒子群优化的物料点货物运输成本最低值计算matlab仿真,包括运输费用、代理人转换费用、运输方式转化费用和时间惩罚费用
10个 Istio 流量管理 最常用的例子,你知道几个?
《2022年中国银行业RPA供应商实力矩阵分析》研究报告正式启动
DM8 backup set deletion
ESP32(基于Arduino)连接EMQX的Mqtt服务器上传信息与命令控制
Security xxE vulnerability recurrence (XXe Lab)
[Zhao Yuqiang] deploy kubernetes cluster with binary package
20、 EEPROM memory (AT24C02) (similar to AD)
Align items and align content in flex layout
Exchange bottles (graph theory + thinking)
随机推荐
【FPGA教程案例12】基于vivado核的复数乘法器设计与实现
Plus d'un milliard d'utilisateurs de grandes entreprises comme Facebook ont été compromis, il est temps de se concentrer sur le did
食品行业仓储条码管理系统解决方案
[PSO] Based on PSO particle swarm optimization, matlab simulation of the calculation of the lowest transportation cost of goods at material points, including transportation costs, agent conversion cos
MySql數據庫root賬戶無法遠程登陸解决辦法
The global and Chinese market of negative pressure wound therapy unit (npwtu) 2022-2028: Research Report on technology, participants, trends, market size and share
Viewing and verifying backup sets using dmrman
Tips for using dm8huge table
Global and Chinese markets for medical gas manifolds 2022-2028: Research Report on technology, participants, trends, market size and share
Ks008 SSM based press release system
C (XXIX) C listbox CheckedListBox Imagelist
Prime protocol announces cross chain interconnection applications on moonbeam
Yyds dry goods inventory web components series (VII) -- life cycle of custom components
登录mysql输入密码时报错,ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: NO/YES
Interface idempotency
Detailed explanation of serialization and deserialization
Error 1045 (28000): access denied for user 'root' @ 'localhost' (using password: no/yes
Ethernet port &arm & MOS &push-pull open drain &up and down &high and low sides &time domain and frequency domain Fourier
Network security - Security Service Engineer - detailed summary of skill manual (it is recommended to learn and collect)
Differential GPS RTK thousand search