当前位置:网站首页>[NPM usage related] NPM source settings
[NPM usage related] NPM source settings
2022-08-07 08:23:00 【ariako_n】
NPM source settings
Sometimes it is limited by the influence of network factors in China. Usually, before installing a package manager, you can switch to Taobao NPM image to speed up the installation speed, but it should be noted that if it is a private module in the official NPM, you must switch to the official source, otherwise a 404 error will appear.
View current npm sources
npm config get registry # http://registry.npmjs.org/Switch to taobao source
npm config set registry=https://registry.npmmirror.comSwitch to npm official source
When npm publish, you need to switch back to npm source
npm config set registry=http://registry.npmjs.orgIf you don't want to set global settings, you can also pass the mirror address through parameters when executing the npm command
npm i module --registry=https://registry.npmmirror.com Note: Taobao NPM mirror has a new domain name, which has been changed from http://registry.npm.taobao.org to https://registry.npmmirror.com. Currently, the old NPM mirror address has been hopped 301 times.but the old http://npm.taobao.org and http://registry.npm.taobao.org domains have been discontinued
边栏推荐
猜你喜欢

DeFi 前景展望:概览主流 DeFi 协议 Q2 进展

哈希-闭散列

VisualVM工具的下载及插件安装

31. 了解什么是 redis 的雪崩、穿透和击穿?redis 崩溃之后会怎么样?应对措施是什么

org.apache.ibatis.binding.BindingException

《C陷阱与缺陷》之“语义”陷阱——数组越界导致的程序死循环问题
![Prediction of Operations Research Fundamentals [2]](/img/44/9482e1e3645ed3df13132bdb8fe9a1.png)
Prediction of Operations Research Fundamentals [2]

有望引领下轮牛市的5大加密主题

#yyds干货盘点#【愚公系列】2022年08月 Go教学课程 004-Go代码注释

FPGA开发第四弹:触摸按键控制LED灯实验
随机推荐
Lecture: 494. Goals and
选择排序(简单选择排序和堆排序)
信号工必备基础100问【转自微信公众号铁路信号技术交流】
The third bullet of FPGA development: button control LED experiment
Sort---Insertion sort
Linux installation software command yum, apt-get
redis基础常识、数据类型及基本命令
为什么Move将超越Solidity成为主流编程语言?
Powerful number
有望引领下轮牛市的5大加密主题
Lexicon: 416. Divide Equals and Subsets
U-Net网络
LeetCode刷题笔记:1374.生成每种字符都是奇数个的字符串
Sort -- Hill sort
力扣:494. 目标和
排序---插入排序
关于在物联网公司实习这几天的收获
ABP 6.0.0-rc.1的新特性
路由、 网络、互联网、因特网、公网私网IP、NAT技术
Sort--selection sort