Article directory
what is nrm
- is the npm source manager
- Use it to quickly switch npm sources
how to use nrm
View the npm source currently used by this machine
npm config ls
install nrm
npm install -g nrm
View optional sources
The star represents the currently used source
nrm ls
View currently used source
nrm current
switch source
nrm use <源名字>
add source
nrm add <源名字> <url>
delete source
nrm del <source name>
Response time of test source
nrm test <源名字>
Take a chestnut: Test the response time of Taobao source
nrm test taobao
If you encounter this error, you can use this solution to solve it
Npm audit reports an error npm WARN audit 501 Method Not Implemented
npm WARN audit 501 Method Not Implemented - POST https://registry.npmmirror.com/-/npm/v1/security/audits/quick - [NOT_IMPLEMENTED] /-/npm/v1/security/audits/quick not implemented yet
{
error: '[NOT_IMPLEMENTED] /-/npm/v1/security/audits/quick not implemented yet'
}
npm ERR! audit endpoint returned an error
solution:
1. Switch to the official source
npm install -g nrm
nrm use npm
2. View vulnerabilities
npm audit
3. Bug fixes
npm audit fix
4. Use the following commands with caution: forcefully resolve vulnerabilities
--force is a dangerous option because it upgrades dependencies without regard to any rules. For example, this could cause a dependency to go from one version 1.2.0 to another version 2.3.0. This means that functions you used in your project may no longer exist or behave differently, effectively breaking your application.
npm audit fix --force
to be added
- I will write here today~
- Friends, ( ̄ω ̄( ̄ω ̄〃 ( ̄ω ̄〃)ゝ See you tomorrow~~
- Everyone be happy every day
Everyone is welcome to point out where the article needs to be corrected~
Learning is endless, cooperation is win-win