Skip to content

Commit f5dd456

Browse files
committed
[skip travis] AppVeyor: try not to upgrade npm for node > 0.x
1 parent 2aceeb9 commit f5dd456

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/build-appveyor.bat

+4
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ IF /I "%platform%"=="x64" powershell Install-Product node $env:nodejs_version x6
4242
IF /I "%platform%"=="x86" powershell Install-Product node $env:nodejs_version x86
4343
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
4444

45+
SET NODE_MAJOR=%nodejs_version:~0,1%
46+
ECHO node major version^: %NODE_MAJOR%
47+
IF %NODE_MAJOR% GTR 0 ECHO node version greater than zero, not updating npm && GOTO SKIP_APPVEYOR_INSTALL
48+
4549
powershell Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force
4650
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
4751
CALL npm install --global --production npm-windows-upgrade

0 commit comments

Comments
 (0)