Skip to content

Commit

Permalink
fix!: do not fall back to source builds of Node.js (#185)
Browse files Browse the repository at this point in the history
Co-authored-by: marboledacci <[email protected]>
  • Loading branch information
dsanders11 and marboledacci authored Aug 28, 2024
1 parent 504af9d commit a961cb5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/scripts/install-nvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,21 @@ fi
if [ "$NODE_PARAM_VERSION" = "latest" ]; then
# When no version is specified we default to the latest version of Node
NODE_ORB_INSTALL_VERSION=$(nvm ls-remote | tail -n1 | grep -Eo 'v[0-9]+\.[0-9]+\.[0-9]+')
nvm install "$NODE_ORB_INSTALL_VERSION" # aka nvm install node. We're being explicit here.
nvm install -b "$NODE_ORB_INSTALL_VERSION" # aka nvm install node. We're being explicit here.
nvm alias default "$NODE_ORB_INSTALL_VERSION"
elif [ -n "$NODE_PARAM_VERSION" ] && [ "$NODE_PARAM_VERSION" != "lts" ]; then
nvm install "$NODE_PARAM_VERSION"
nvm install -b "$NODE_PARAM_VERSION"
nvm alias default "$NODE_PARAM_VERSION"
elif [ -f ".nvmrc" ]; then
NVMRC_SPECIFIED_VERSION=$(<.nvmrc)
nvm install "$NVMRC_SPECIFIED_VERSION"
nvm install -b "$NVMRC_SPECIFIED_VERSION"
nvm alias default "$NVMRC_SPECIFIED_VERSION"
elif [ -f ".node-version" ]; then
NVMRC_SPECIFIED_VERSION=$(<.node-version)
nvm install "$NVMRC_SPECIFIED_VERSION"
nvm alias default "$NVMRC_SPECIFIED_VERSION"
else
nvm install --lts
nvm install -b --lts
nvm alias default lts/*
fi

Expand Down

0 comments on commit a961cb5

Please sign in to comment.