npm and yarn are super slow

#If you feel that the installation speed is slow, the installation source is the same as the original npm and can be used universally. The modification method is as follows:
No matter whether you use npm or yarn in China, the installation speed is very slow. Because the mirror source address is abroad, the existence of Qiang causes the speed to be very slow. Replace the Taobao mirror source
 
    here to speed up the installation speed. The example here uses yarn, and users who use npm can change yarn to npm.
 
yarn config get registry # View the currently set mirror source address
# -> https://registry.yarnpkg.com
 
can be changed to the source of Taobao:
yarn config set registry'https : //registry.npm.taobao.org'
 
 

Guess you like

Origin blog.csdn.net/I_lost/article/details/113868846