设置代理 具体代理端口要根据自己的来 npm config set proxy http://127.0.0.1:7890 npm config set https-proxy http://127.0.0.1:7890 取消代理 npm config delete proxy npm config delete https-proxy 查看代理 npm config get proxy # 应返回 `null` npm config get https-proxy # 应返回 `null`