代理配置

大憨熊 提交于 2020-07-29 11:12:38

cmd代理

  cmd配置代理: set http_proxy=http://199.199.199.199:9999

  cmd清除代理:reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /f

 

Git代理

  Git代理配置:git config --global http.proxy http://199.199.199.199:9999
  git清除代理:
    git config --global --unset http.proxy

    git config --global --unset https.proxy

 

linux临时代理:
  export http_proxy=http://199.199.199.199:9999

  export https_proxy=http://199.199.199.199:9999

  export ftp_proxy=http://199.199.199.199:9999

 

NPM代理:

  npm 清楚代理: npm config delete proxy
  设置npm代理:
    npm config set proxy=http://199.199.199.199:9999
    npm config set registry=http://registry.npmjs.org
    npm config set https-proxy http://199.199.199.199:9999



设置淘宝镜像:npm install -g cnpm --registry=https://registry.npm.taobao.org

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!