Files
qt5/coin/provisioning/qtci-macos-12-arm/30-nodejs.sh
Jukka Jokiniva 8652b31f98 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>
2025-04-01 09:45:27 +00:00

12 lines
350 B
Bash
Executable File

#!/usr/bin/env bash
#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 node@22
SetEnvVar "PATH" "/opt/homebrew/opt/node@22/bin:\$PATH"