From ff311a854b321509536fcb94d039a7e3bc278995 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=89=AF?= <841369634@qq.com> Date: Fri, 29 Nov 2024 21:40:42 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=20=E4=BF=AE=E5=A4=8D=20npm=E4=BB=A3?= =?UTF-8?q?=E7=90=86=20=E5=8A=9F=E8=83=BD=E7=9A=84http=E4=BB=A3=E7=90=86?= =?UTF-8?q?=E5=9C=B0=E5=9D=80=E7=AB=AF=E5=8F=A3=E5=8F=B7=E4=B8=8D=E6=AD=A3?= =?UTF-8?q?=E7=A1=AE=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/core/src/modules/plugin/node/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/modules/plugin/node/index.js b/packages/core/src/modules/plugin/node/index.js index e19269555c..e646877e02 100644 --- a/packages/core/src/modules/plugin/node/index.js +++ b/packages/core/src/modules/plugin/node/index.js @@ -125,7 +125,7 @@ const NodePlugin = function (context) { const command = config.get().plugin.node.setting.command || 'npm' const cmds = [ - `${command} config set proxy=http://${ip}:${port}`, + `${command} config set proxy=http://${ip}:${port - 1}`, `${command} config set https-proxy=http://${ip}:${port}`, ]