Skip to content

Commit c9608d7

Browse files
[macOS] do not iterate over npm packages on Ventura (#8175)
1 parent 6315e88 commit c9608d7

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

images/macos/provision/core/node.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ brew link node@$defaultVersion --force --overwrite
1010
echo Installing yarn...
1111
curl -fsSL https://yarnpkg.com/install.sh | bash
1212

13-
npm_global_packages=$(get_toolset_value '.npm.global_packages[].name')
14-
for module in ${npm_global_packages[@]}; do
15-
echo "Install $module"
16-
npm install -g $module
13+
if ! is_Ventura || ! is_VenturaArm64; then
14+
npm_global_packages=$(get_toolset_value '.npm.global_packages[].name')
15+
for module in ${npm_global_packages[@]}; do
16+
echo "Install $module"
17+
npm install -g $module
1718
done
19+
fi
1820

1921
invoke_tests "Node" "Node.js"

0 commit comments

Comments
 (0)