代理配置

cmd代理linux

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

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

 

Git代理代理

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

    git config --global --unset https.proxyit

 

linux臨時代理:
  export http_proxy=http://199.199.199.199:9999io

  export https_proxy=http://199.199.199.199:9999ftp

  export ftp_proxy=http://199.199.199.199:9999配置

 

NPM代理:cnpm

  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

相關文章
相關標籤/搜索