当前位置:网站首页>NRM explanation
NRM explanation
2022-06-29 22:51:00 【Xiaoli Technology】
1, What is? nrm
nrm It's a npm Source Manager , Allows you to quickly in npm Switch between sources .
What does that mean ,npm Use by default npm Official source ( Use npm config ls Commands can be viewed ), It is certainly unreliable to use this source at home , We usually use Taobao npm Source :https://registry.npm.taobao.org/, The way to modify the source is also simple , Input... At the terminal :
npm set registry https://registry.npm.taobao.org/
Again npm config ls see , It has been switched successfully .
that , The problem is coming. , If one day you go abroad again , Taobao source is definitely useless , And switch back to the official website source , Or one day your company has its own private npm Source , You need to switch to the source of the company , Isn't that troublesome ? Hence the nrm.
2,nrm install
npm install -g nrm
3,nrm Use
3.1 Check out the optional sources The asterisk represents the current source
nrm ls
3,nrm Use
3.1 Check out the optional sources The asterisk represents the current source
nrm ls

**3.1 View the current source
nrm current

3.2 Switch source
nrm use <registry>
among ,registry For the source name .
such as : Switch to a taobao Source
nrm use taobao

4, Add source
nrm add <registry> <url>
among ,registry For the source name ,url Is the source address .
such as : Add a company private npm Source , The source address is :
$ http://192.168.22.11:8888/repository/npm-public/, The source name is cpm( Take at will ).
$ nrm add cpm http://192.168.22.11:8888/repository/npm-public/

then , See if it is added successfully

5, Delete source
nrm del <registry>
among ,registry For the source name .
such as : Delete the just added cpm Source
nrm del cpm
6, Test source speed
nrm test
among ,registry For the source name .
such as : Test the response time of official source and Taobao source
nrm test npm
nrm test taobao

边栏推荐
- math_ Basic elementary function graph (power function / exponent / logarithm / trigonometry / inverse trigonometry)
- 地方/园区如何做好产业分析?
- The development of grpc
- Evolution from stand-alone to distributed database storage system
- Golang code specification sorting
- Summer rainbow comes for dinner
- 字节云数据库未来方向的探索与实践
- static关键字续、继承、重写、多态
- MySQL lock common knowledge points & summary of interview questions
- Unicom warehousing | all Unicom companies that need to sell their products need to enter the general warehouse first
猜你喜欢

Advanced use of the optional class

什么是IGMP?IGMP与ICMP有啥区别?

5-1系統漏洞掃描

Daily mathematics serial 54: February 23

把数组排成最小的数_数组中的逆序对(归并统计法)_数字在升序数组中出现的次数_丑数(剑指offer)

2022 (第五届)GIS软件技术大会开幕,GIS、IT将加速融合

Kubernetes architecture that novices must know

Nacos-配置中心基本使用

英语没学好到底能不能做coder,别再纠结了先学起来

从零实现深度学习框架——LSTM从理论到实战【理论】
随机推荐
AI scene Storage Optimization: yunzhisheng supercomputing platform storage practice based on juicefs
Wireshark data analysis and forensics information pacapng
Talk about auto in MySQL in detail_ What is the function of increment
Live broadcast platform development, enter the visual area to execute animation, dynamic effects and add style class names
LeetCode85+105+114+124
字节云数据库未来方向的探索与实践
STM32基础知识点
Mysql database: partition
Qt中使用QDomDocument和QDomnode来读取xml
Arrange the array into the smallest number_ Reverse pairs in an array (merge Statistics)_ Number of occurrences of a number in an ascending array_ Ugly number (Sword finger offer)
论文浅尝 | KR-GCN: 知识感知推理的可解释推荐系统
Just like our previous views on the Internet, our understanding of the Internet began to become deeper
服务器快速搭建AList集成网盘网站【宝塔面板一键部署AList】
An in-depth analysis of the election mechanism in kubernetes
5-1系統漏洞掃描
leetcode:91. Decoding method [DFS + memorization]
If you master these 28 charts, you will no longer be afraid to be asked about TCP knowledge during the interview
grpc的开发详解
3D stereo photo album, Valentine's day, couple birthday gift code applicable
Unity Pac Man games, maze implementation