当前位置:网站首页>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
边栏推荐
- 还天天熬夜加班做报表?其实你根本不懂如何高效做报表
- SYSTEMd debugging
- Discussion on distributed unique ID generation scheme
- If you master these 28 charts, you will no longer be afraid to be asked about TCP knowledge during the interview
- error: C2665: “QMessageBox::critical”: 4 个重载中没有一个可以转换所有参数类型
- 《天天数学》连载54:二月二十三日
- Online text digit recognition list summation tool
- 架构实战营模块 5 作业
- js函数相关的复习
- Phpspreadsheet reading and writing Excel files
猜你喜欢
Hematemesis finishing: a rare map of architects!
Hidden worries behind the listing of shushulang: the performance has declined significantly, the market position is relatively backward, and the competitiveness is questionable
Daily mathematics serial 54: February 23
Nacos-配置中心基本使用
Optional类的高级使用
【无工具搭建PHP8+oracle11g+Windows环境】内网/无网络/Win10/PHP连接oracle数据库实例
Still stay up late every day and work overtime to make statements? In fact, you don't know how to make reports efficiently
VS无法定位程序输入点于动态链接库
AI场景存储优化:云知声超算平台基于 JuiceFS 的存储实践
Touch key and key control corresponding LED status reversal
随机推荐
Evaluation of powerful and excellent document management software: image management, book management and document management
Laravel 创建自己的 Facade 扩展 geoip 根据 IP 获取国家、地域、城市信息
error: C2665: “QMessageBox::critical”: 4 个重载中没有一个可以转换所有参数类型
The third day
云原生爱好者周刊:炫酷的 Grafana 监控面板集合
3D stereo photo album, Valentine's day, couple birthday gift code applicable
[从零开始学习FPGA编程-51]:高阶篇 - 基于IP核的FPGA开发- 什么是FPGA IP核(软核、固核、硬核)与学习方法
mysql备份数据库linux
MySQL backup database Linux
Evolution from stand-alone to distributed database storage system
Gnawing down the big bone - sorting (I)
5-1 system vulnerability scanning
nrm详解
论文阅读《Large-Scale Direct SLAM with Stereo Cameras》
2022年第一季度保险服务数字化跟踪分析
正如以往我们对于互联网的看法一样,我们对于互联网的认识开始变得深度
MySQL 锁常见知识点&面试题总结
Number theory - division and blocking
qt5.14.2连接ubuntu20.04的mysql数据库出错
【无工具搭建PHP8+oracle11g+Windows环境】内网/无网络/Win10/PHP连接oracle数据库实例