Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
TJ2005 authored Dec 24, 2024
1 parent a575bb7 commit c3849cf
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,14 @@ jobs:
script: |
echo "SSH Connection Successful"
# Install the latest version of npm
npm install -g npm@latest
# Install nvm (Node Version Manager) and the latest compatible version of Node.js and npm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
# Install Node.js and npm (latest stable version)
nvm install 20 # You can specify any compatible version you need, like 20 or 22
nvm use 20
# Check Node.js and npm versions
node -v
Expand Down

0 comments on commit c3849cf

Please sign in to comment.