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