yarn config get registry # Check the current source address of the mirror
# -> https://registry.yarnpkg.comYou can change the source of Taobao to yarn configset registry 'https://registry.npm.taobao.org'Copy the code
You can also use the yrm github address: github.com/i5ting/yrm
npm i -g yrmCopy the code
Yrm is a YARN source manager that allows you to quickly switch between yarn sources
The specific use
Yrm ls / / list of the available source of NPM - https://registry.npmjs.org/ CNPM taobao - - http://r.cnpmjs.org/ https://registry.npm.taobao.org/ nj ----- https://registry.nodejitsu.com/ rednpm - http://registry.mirror.cqupt.edu.cn/ npmMirror https://skimdb.npmjs.com/registry/ edunpm - http://registry.enpmjs.org/ * yarn --- https://registry.yarnpkg.com / / said that the current use of source yrm use taobao yrm / / switch sourcestest// Test the response time of each elementCopy the code
Of course, CGR www.npmjs.com/package/cgr
Refer to the specific usage document