以下命令只是临时生效,关闭命令行后失效
-
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
-