[macOS] do not iterate over npm packages on Ventura (#8175)

This commit is contained in:
Mikhail Koliada
2023-08-30 15:07:36 +02:00
committed by GitHub
parent 6315e88f65
commit c9608d744f

View File

@@ -10,10 +10,12 @@ brew link node@$defaultVersion --force --overwrite
echo Installing yarn...
curl -fsSL https://yarnpkg.com/install.sh | bash
npm_global_packages=$(get_toolset_value '.npm.global_packages[].name')
for module in ${npm_global_packages[@]}; do
echo "Install $module"
npm install -g $module
if ! is_Ventura || ! is_VenturaArm64; then
npm_global_packages=$(get_toolset_value '.npm.global_packages[].name')
for module in ${npm_global_packages[@]}; do
echo "Install $module"
npm install -g $module
done
fi
invoke_tests "Node" "Node.js"