What is the NRM
NRM is an NPM source manager that allows you to quickly switch between NPM sources. Tai chi blog website www.npmjs.com/package/nrm before to teach you how to configure network of NPM registry source warehouse, link tech.taiji.com.cn/#/blog/view…
A. Download and install the NRM globally
NPM install -g NRM ** Note: If the path of global is not configured in the path environment variable, typing NRM will prompt that NRM is not an internal command.**
B. Add Intranet Registry
Adding the Registry address can be used as the fourth way to configure the Tai Chi Intranet. In a command window to perform NRM add taiji http://repo.taiji.com.cn:8081/repository/npm-all/ can add a company Intranet NPM source (most companies have their own source)
C. View the NRM sources
Run the NRM ls command on the CLI
D. Switch the NPM Registry address
NRM use taobao // Switch taobao NRM use NPM // Switch the original NPM address as shown in the figure below
NRM error solution is executed after NRM installation
Perform NRM error internal/validators. Js: 124 throw new ERR_INVALID_ARG_TYPE (name, “string”, value);
The solution
Find row 4 findcli.js
Line 17, change it to Other switches can be modified according to the name of registry in the above picture, isn’t it very convenient