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 c3849cf commit f1f2cbf
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,7 @@ jobs:
script: |
echo "SSH Connection Successful"
# 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
# Check Node.js and npm versions (to ensure they are correct)
node -v
npm -v
Expand Down

0 comments on commit f1f2cbf

Please sign in to comment.