Skip to content

Latest commit

 

History

History
60 lines (33 loc) · 996 Bytes

常用杂项命令.md

File metadata and controls

60 lines (33 loc) · 996 Bytes

常用杂项命令

设置 CorePack 镜像

以下命令只是临时生效,关闭命令行后失效

  • Windows

    • PowerShell

       $ENV:COREPACK_NPM_REGISTRY='https://registry.npmmirror.com'
    • CMD(Command)

      set COREPACK_NPM_REGISTRY=https://registry.npmmirror.com
  • Mac

    • Zsh(Z Shell)或 Bash

      export COREPACK_NPM_REGISTRY='https://registry.npmmirror.com'

设置命令行网络代理

以下命令只是临时生效,关闭命令行后失效

  • Windows

    • PowerShell

      $env:http_proxy="http://127.0.0.1:7890";$env:https_proxy="http://127.0.0.1:7890"
    • CMD(Command)

      set http_proxy=http://127.0.0.1:7890 && set https_proxy=http://127.0.0.1:7890
  • Mac

    • Zsh(Z Shell)或 Bash

      export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890