Pin nodejs version to 22

Latest nodejs (23.10.0) fails to install on arm Mac 12.
Brew install doesn't add to path automatically, so set
in the script after install.

Change-Id: Ibad6c362e5633cc656e9e580cfe4bd5ef4e5af2a
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
(cherry picked from commit 61fab6d730)
Reviewed-by: Rami Potinkara <rami.potinkara@qt.io>
Reviewed-by: Toni Saario <toni.saario@qt.io>
This commit is contained in:
Jukka Jokiniva
2025-03-19 13:06:16 +02:00
parent 8e9d4f9e88
commit 8652b31f98

View File

@@ -2,7 +2,10 @@
#Copyright (C) 2023 The Qt Company Ltd
#SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
# shellcheck source=../common/unix/SetEnvVar.sh
source "${BASH_SOURCE%/*}/../common/unix/SetEnvVar.sh"
set -ex
brew install nodejs
brew install node@22
SetEnvVar "PATH" "/opt/homebrew/opt/node@22/bin:\$PATH"