Skip to content

Commit b827bfd

Browse files
committed
Check 3
1 parent 222dcba commit b827bfd

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.scrutinizer.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,18 @@ build:
55
dependencies:
66
before:
77
- command: |
8-
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
9-
sudo apt-get install -y nodejs
10-
sudo npm install -g n
11-
sudo n 20
8+
# Install NVM
9+
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
10+
11+
# Load NVM
12+
export NVM_DIR="$HOME/.nvm"
13+
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
14+
15+
# Install and use Node.js 20
16+
nvm install 20
17+
nvm use 20
18+
19+
# Verify installation
1220
node --version
1321
npm --version
1422
nodes:

0 commit comments

Comments
 (0)