Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: require node version 18 (#3316)

Danny Xubc97f1c7467a
diff --git a/scripts/build.sh b/scripts/build.sh
index c5684cbb31..1a8a788a16 100755
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -19,6 +19,12 @@ then
echo "${RED}Precheck failed.${NC} Require go version >= 1.19. Current version ${GO_VERSION}."; exit 1;
fi
+NODE_VERSION=`node -v | { read v; echo ${v#v}; }`
+if [ "$(version ${NODE_VERSION})" -lt "$(version 18.11)" ];
+then
+ echo "${RED}Precheck failed.${NC} Require node.js version >= 18.11. Current version ${NODE_VERSION}."; exit 1;
+fi
+
if ! command -v npm > /dev/null
then
echo "${RED}Precheck failed.${NC} npm is not installed."; exit 1;