git npm brew yarn 配置proxy



all

export https_proxy=http://127.0.0.1:6152
export http_proxy=http://127.0.0.1:6152
export all_proxy=socks5://127.0.0.1:6153




git npm brew yarn 配置代理

//git列出
git config --global http.proxy

//git设置
git config --global http.proxy 'socks5://127.0.0.1:6153'

//git取消设置

git config --global --unset http.proxy



npm

//列出所有配置
npm config ls -l

//列出
npm config list

//设置

npm config set https-proxy http://127.0.0.1:6152
npm config set proxy http://127.0.0.1:6152



//npm 取消配置
npm config list delete https-proxy
npm config set proxy


//yarn 列出

yarn config list

//yarn 设置 

yarn config set proxy http://127.0.0.1:6152
yarn config set https-proxy http://127.0.0.1:6152


//yarn 取消配置

yarn config delete proxy
yarn config delete https-proxy



//brew 列出

all_proxy=socks5://127.0.0.1:6153 brew install mysql






Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *