set proxy for npm and yarn code example
Example: set yarn proxy
yarn config set proxy http://user:password@host:port
yarn config set https-proxy http://user:password@host:port
yarn config set proxy http://user:password@host:port
yarn config set https-proxy http://user:password@host:port