当前位置:网站首页>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 .

边栏推荐
- 2/11 matrix fast power +dp+ bisection
- How to standardize the deployment of automated testing?
- P3033 [usaco11nov]cow steelchase g (similar to minimum path coverage)
- 《2022年中国银行业RPA供应商实力矩阵分析》研究报告正式启动
- Global and Chinese markets for otolaryngology devices 2022-2028: Research Report on technology, participants, trends, market size and share
- User datagram protocol UDP
- Leetcode32 longest valid bracket (dynamic programming difficult problem)
- [disassembly] a visual air fryer. By the way, analyze the internal circuit
- [Zhao Yuqiang] deploy kubernetes cluster with binary package
- In Net 6 CS more concise method
猜你喜欢

C mouse event and keyboard event of C (XXVIII)
![[introduction to Django] 11 web page associated MySQL single field table (add, modify, delete)](/img/8a/068faf3e8de642c9e3c4118e6084aa.jpg)
[introduction to Django] 11 web page associated MySQL single field table (add, modify, delete)

C (XXIX) C listbox CheckedListBox Imagelist

lora网关以太网传输

SSTI template injection explanation and real problem practice

C#(三十一)之自定义事件

MySql数据库root账户无法远程登陆解决办法

Facebook等大厂超十亿用户数据遭泄露,早该关注DID了

Facebook等大廠超十億用戶數據遭泄露,早該關注DID了
![[001] [stm32] how to download STM32 original factory data](/img/5a/02d87fe1409a9427180ecefb8326c6.jpg)
[001] [stm32] how to download STM32 original factory data
随机推荐
Path of class file generated by idea compiling JSP page
10個 Istio 流量管理 最常用的例子,你知道幾個?
Facebook等大厂超十亿用户数据遭泄露,早该关注DID了
Comprehensive ability evaluation system
Serial port-rs232-rs485-ttl
Basic knowledge of binary tree, BFC, DFS
Ks003 mall system based on JSP and Servlet
asp. Core is compatible with both JWT authentication and cookies authentication
2/13 qaq~~ greed + binary prefix sum + number theory (find the greatest common factor of multiple numbers)
P7735-[noi2021] heavy and heavy edges [tree chain dissection, line segment tree]
Yyds dry goods inventory web components series (VII) -- life cycle of custom components
2/10 parallel search set +bfs+dfs+ shortest path +spfa queue optimization
Stack and queue
Record the pit of NETCORE's memory surge
The Research Report "2022 RPA supplier strength matrix analysis of China's banking industry" was officially launched
判断当天是当月的第几周
Brief tutorial for soft exam system architecture designer | general catalog
80% of the diseases are caused by bad living habits. There are eight common bad habits, which are both physical and mental
在 .NET 6 中使用 Startup.cs 更简洁的方法
C (XXIX) C listbox CheckedListBox Imagelist