Files
runner-images/images/macos/provision/core/node.sh
V-Zabayrachny 3c2f1c6350 [macOS] Remove macOS 10.14 related code in the VE repo (#4816)
* [MacOS] Remove code for macOS-10.14

* remove is_Less_BigSur in all script

* remove variable the IsLessThanBigSur
2021-12-30 10:36:59 +03:00

20 lines
505 B
Bash

#!/bin/bash -e -o pipefail
source ~/utils/utils.sh
defaultVersion=$(get_toolset_value '.node.default')
echo "Installing Node.js $defaultVersion"
brew_smart_install "node@$defaultVersion"
brew link node@$defaultVersion --force
echo Installing yarn...
curl -o- -L 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
done
invoke_tests "Node" "Node.js"