diff --git a/scripts/create-release-tarball b/scripts/create-release-tarball index 4c4af0565..755170f62 100755 --- a/scripts/create-release-tarball +++ b/scripts/create-release-tarball @@ -36,8 +36,8 @@ if ! $(cd "${SOURCE_DIR}" && git diff --exit-code >/dev/null); then exit 1 fi -if [[ "$(node --version)" != "v16.18.1" ]]; then - echo "This script requires node 16.18.1" +if [[ "$(node --version)" != "v18.16.0" ]]; then + echo "This script requires node 18.16.0" exit 1 fi diff --git a/scripts/installer.sh b/scripts/installer.sh index f98ca7dde..1bcc044ed 100755 --- a/scripts/installer.sh +++ b/scripts/installer.sh @@ -115,7 +115,8 @@ elif [[ "${ubuntu_version}" == "18.04" ]]; then fi fi -readonly node_version=16.18.1 +readonly old_node_version=16.18.1 +readonly node_version=18.16.0 if ! which node 2>/dev/null || [[ "$(node --version)" != "v${node_version}" ]]; then log "installing/updating node ${node_version}" mkdir -p /usr/local/node-${node_version} @@ -124,7 +125,7 @@ if ! which node 2>/dev/null || [[ "$(node --version)" != "v${node_version}" ]]; rm /tmp/node.tar.gz ln -sf /usr/local/node-${node_version}/bin/node /usr/bin/node ln -sf /usr/local/node-${node_version}/bin/npm /usr/bin/npm - rm -rf /usr/local/node-16.14.2 + rm -rf /usr/local/node-${old_node_version} fi # obsolete module