How to set registry to NPM and Yarn

If you're in China and encounted a problem that it's too slow or even unable to connect, you can set yarn registry to which is a mirror in China.

Run command:

# Set registry globally
yarn config set registry
npm config set registry

# Set register temporarily
npm --registry install express