Skip to content

Commit abba49f

Browse files
fix(install): update npm installation loop syntax for clarity
1 parent 4bd2374 commit abba49f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/node/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ elif bash -c ". '${NVM_DIR}/nvm.sh' && type npm >/dev/null 2>&1"; then
457457
echo "Skipping npm installation due to compatibility issues."
458458
else
459459
# Try npm installation with retries
460-
for i in {1..3}; do
460+
for i in 1 2 3; do
461461
echo "Attempt $i: Running npm install -g npm@$NPM_VERSION"
462462
if npm install -g npm@$NPM_VERSION --force --no-audit --no-fund 2>&1; then
463463
NEW_VERSION=$(npm --version 2>/dev/null || echo 'unknown')

0 commit comments

Comments
 (0)