Skip to content

Commit

Permalink
NodeJS, NPM and NVM improvements & upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
barriosnahuel committed Feb 27, 2022
1 parent e040d35 commit 17e8adb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# v2.7.2
## Changed
- NodeJS & NVM versions upgraded to 17 and 0.39.0 respectively.

## Fixed
- Homebrew installation script & env vars.

Expand Down
8 changes: 4 additions & 4 deletions modules/nodejs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ enterDirOrExit "${CURRENT_DIR}"

if ! command -v nvm >/dev/null; then
preInstallationLog "NVM"
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash

# Required to be able to call > nvm XXX on current terminal session.
export NVM_DIR="$HOME/.nvm"
Expand All @@ -22,22 +22,22 @@ fi
if ! command -v node >/dev/null; then
preInstallationLog "NodeJS"

nvm install 10
nvm install 17
else
logAlreadyInstalled "NodeJS"
fi


if ! command -v npm >/dev/null; then
preInstallationLog "NPM"
curl -L https://www.npmjs.com/install.sh | sh
nvm install-latest-npm
postInstallationLog "NPM"
else
logAlreadyInstalled "NPM"
fi


logProgramVersion "NVM" "$(nvm version)"
logProgramVersion "NVM" "$(nvm --version)"
logProgramVersion "Node" "$(node -v)"
logProgramVersion "NPM" "$(npm -v)"

Expand Down

0 comments on commit 17e8adb

Please sign in to comment.