NRM-NPM image source management tool

Time:2022-11-24

1. Introduction

nrm is a mirror source management tool of npm, which can help to quickly switch mirror sources and facilitate management.

2. Installation

Enter commands in the terminal (Mac) or cmd command window (windows) to install globally

npm install nrm -g

view version

nrm -V

Three, nrm use

View available sources

nrm ls

NRM-NPM image source management tool

  • View the current source: nrm current
  • Switch source: nrm use<registry>
  • Add source: nrm add<registry><url> For example: nrm add aaaaahttps://aaaaa.com
  • Delete source: nrm del<registry>
  • Response time of the test source: nrm test<registry>