From 289725f6f9148f4df09948c2cc705f475953a433 Mon Sep 17 00:00:00 2001 From: chenzhihang <709011834@qq.com> Date: Fri, 11 Oct 2024 16:56:53 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E7=BD=B2=E4=BF=AE=E6=94=B9=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 | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/k8s/build-node.sh b/k8s/build-node.sh index 5639a72f..b406531d 100755 --- a/k8s/build-node.sh +++ b/k8s/build-node.sh @@ -3,12 +3,13 @@ baseDir="/home/somuns/ci4s" cd ${baseDir}/react-ui -# npm install +npm install -g npm@10.9.0 + npm install -#if [ $? -ne 0 ]; then -# echo "Failed to install npm depend package" -# exit 1 -#fi +if [ $? -ne 0 ]; then + echo "Failed to install npm depend package" + exit 1 +fi npm run build