NPM Setting taobao mirror 1. Query the currently configured mirror

npm get registry

registry.npmjs.org/

Set to Taobao mirror

npm config set registry registry.npm.taobao.org/

2. Replace it with the original

npm config set registry registry.npmjs.org/

Yarn Setting Taobao Mirror 1. Query the configured mirror

yarn config get registry

registry.yarnpkg.com

Set to Taobao mirror

yarn config set registry registry.npm.taobao.org/

To solve the problem