Skip to content

Commit

Permalink
More changes to node update script
Browse files Browse the repository at this point in the history
  • Loading branch information
MStolen committed Jan 17, 2024
1 parent 50fc610 commit 760cad2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/update_node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ fi

# Install/update Node and npm
source ~/.nvm/nvm.sh
nvm install --lts=iron --latest-npm # Install LTS version 20.x.x of node
nvm alias default lts/iron # set default to be LTS version
nvm install --lts=iron --latest-npm --default --no-progress # Install LTS version 20.x.x of node

# Install/update pnpm
if ! command -v pnpm &> /dev/null # check if pnpm is installed
then
# install pnpm
npm install -g pnpm
pnpm setup
else
# update pnpm
pnpm add -g pnpm
Expand Down

0 comments on commit 760cad2

Please sign in to comment.