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

边栏推荐
- Vs2013 how to make the program run on other computers
- AI scene Storage Optimization: yunzhisheng supercomputing platform storage practice based on juicefs
- 3D stereo photo album, Valentine's day, couple birthday gift code applicable
- MySQL backup database Linux
- Go zero micro Service Practice Series (VII. How to optimize such a high demand)
- Optional类的高级使用
- 详细聊聊MySQL中auto_increment有什么作用
- Summer rainbow comes for dinner
- grpc的开发详解
- 深入解析kubernetes中的选举机制
猜你喜欢

5-1 system vulnerability scanning

服务器快速搭建AList集成网盘网站【宝塔面板一键部署AList】

Kr-gcn: an interpretable recommendation system based on knowledge aware reasoning

Design of Distributed Message Oriented Middleware

缓冲流练习

触摸按键与按键控制对应的LED状态翻转

2022年第一季度保险服务数字化跟踪分析

从零实现深度学习框架——RNN从理论到实战【实战】

Optional类的高级使用
![Realizing deep learning framework from zero -- LSTM from theory to practice [theory]](/img/ac/164140eff1a6518d49ce25599d9c7b.png)
Realizing deep learning framework from zero -- LSTM from theory to practice [theory]
随机推荐
Realizing deep learning framework from zero -- LSTM from theory to practice [theory]
STM32 basic knowledge points
The development of grpc
联通入库|需要各地联通公司销售其产品的都需要先入总库
How ZABBIX 5.0 adds esxi6.7 to monitoring
Optional类的高级使用
How can the local / park do a good job in industrial analysis?
AI场景存储优化:云知声超算平台基于 JuiceFS 的存储实践
With the rise of China's database, Alibaba cloud lifeifei: China's cloud database has taken the lead in various mainstream technological innovations abroad
关于深度学习的概念理解(笔记)
MySQL 锁常见知识点&面试题总结
The soft youth under the blessing of devcloud makes education "smart" in the cloud
论文浅尝 | KR-GCN: 知识感知推理的可解释推荐系统
leetcode:91. Decoding method [DFS + memorization]
What if MySQL fails to store emoticons
啃下大骨头——排序(一)
从零实现深度学习框架——RNN从理论到实战【实战】
Taishan Office Technology Lecture: all elements in a row have the same height
Digital tracking analysis of insurance services in the first quarter of 2022
Detailed description of gaussdb (DWS) complex and diverse resource load management methods