From d1850789b6b31c02a9c6f650df542b8e2a7cb293 Mon Sep 17 00:00:00 2001 From: chenzhihang <709011834@qq.com> Date: Mon, 14 Oct 2024 13:50:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E9=83=A8=E7=BD=B2=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- k8s/build-node.sh | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/k8s/build-node.sh b/k8s/build-node.sh index b81844d3..407553a6 100755 --- a/k8s/build-node.sh +++ b/k8s/build-node.sh @@ -3,13 +3,15 @@ baseDir="/home/somuns/ci4s" cd ${baseDir}/react-ui -#npm install -g npm@10.9.0 -#npm install -# -#if [ $? -ne 0 ]; then -# echo "Failed to install npm depend package" -# exit 1 -#fi +npm config set proxy http://172.20.32.253:3128 +npm config set https-proxy http://172.20.32.253:3128 + +npm install + +if [ $? -ne 0 ]; then + echo "Failed to install npm depend package" + exit 1 +fi npm run build