[MacOS] Rework NodeJS install (#4380)

This commit is contained in:
Nikolay Frolov
2021-11-09 17:49:30 +03:00
committed by GitHub
parent fa41b676c7
commit 58ce149ebf
7 changed files with 44 additions and 5 deletions

View File

@@ -11,10 +11,10 @@ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/$VERSION/install.sh | bash
if [ $? -eq 0 ]; then
. ~/.bashrc
nvm --version
nodeVersions=("v10" "v12" "v14")
nodeVersions=$(get_toolset_value '.node.nvm_versions[]')
for version in ${nodeVersions[@]}
do
nvm install $version
nvm install v${version}
done
# set system node as default