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

边栏推荐
- Yyds dry goods inventory web components series (VII) -- life cycle of custom components
- 简易博客系统
- /usr/bin/gzip: 1: ELF: not found/usr/bin/gzip: 3: : not found/usr/bin/gzip: 4: Syntax error:
- Global and Chinese market of plasma separator 2022-2028: Research Report on technology, participants, trends, market size and share
- 2/10 parallel search set +bfs+dfs+ shortest path +spfa queue optimization
- Global and Chinese markets for otolaryngology devices 2022-2028: Research Report on technology, participants, trends, market size and share
- 自动化测试的好处
- Cf603e pastoral oddities [CDQ divide and conquer, revocable and search set]
- Oracle ORA error message
- Error 1045 (28000): access denied for user 'root' @ 'localhost' (using password: no/yes
猜你喜欢

Web components series (VII) -- life cycle of custom components
![Cf464e the classic problem [shortest path, chairman tree]](/img/6b/65b2dc62422a45cc72f287c38dbc58.jpg)
Cf464e the classic problem [shortest path, chairman tree]

Simple blog system

MySQL about self growth

How many of the 10 most common examples of istio traffic management do you know?
![[001] [stm32] how to download STM32 original factory data](/img/5a/02d87fe1409a9427180ecefb8326c6.jpg)
[001] [stm32] how to download STM32 original factory data

SSTI template injection explanation and real problem practice

No qualifying bean of type ‘......‘ available

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

Do you know cookies, sessions, tokens?
随机推荐
Comprehensive ability evaluation system
2/13 review Backpack + monotonic queue variant
Security xxE vulnerability recurrence (XXe Lab)
[FPGA tutorial case 12] design and implementation of complex multiplier based on vivado core
Ethernet port &arm & MOS &push-pull open drain &up and down &high and low sides &time domain and frequency domain Fourier
How to standardize the deployment of automated testing?
C form application of C (27)
【leetcode】1189. Maximum number of "balloons"
MySql數據庫root賬戶無法遠程登陸解决辦法
自动化测试的好处
脚本生命周期
【按鍵消抖】基於FPGA的按鍵消抖模塊開發
2/13 qaq~~ greed + binary prefix sum + number theory (find the greatest common factor of multiple numbers)
No qualifying bean of type ‘......‘ available
【PSO】基于PSO粒子群优化的物料点货物运输成本最低值计算matlab仿真,包括运输费用、代理人转换费用、运输方式转化费用和时间惩罚费用
10個 Istio 流量管理 最常用的例子,你知道幾個?
Prime protocol announces cross chain interconnection applications on moonbeam
P2648 make money
AcWing 243. A simple integer problem 2 (tree array interval modification interval query)
Basic knowledge of binary tree, BFC, DFS