Skip to content

Commit

Permalink
[skip travis] AppVeyor: try not to upgrade npm for node > 0.x
Browse files Browse the repository at this point in the history
  • Loading branch information
wilhelmberg committed May 18, 2016
1 parent 2aceeb9 commit f5dd456
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/build-appveyor.bat
Expand Up @@ -42,6 +42,10 @@ IF /I "%platform%"=="x64" powershell Install-Product node $env:nodejs_version x6
IF /I "%platform%"=="x86" powershell Install-Product node $env:nodejs_version x86
IF %ERRORLEVEL% NEQ 0 GOTO ERROR

SET NODE_MAJOR=%nodejs_version:~0,1%
ECHO node major version^: %NODE_MAJOR%
IF %NODE_MAJOR% GTR 0 ECHO node version greater than zero, not updating npm && GOTO SKIP_APPVEYOR_INSTALL

powershell Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
CALL npm install --global --production npm-windows-upgrade
Expand Down

0 comments on commit f5dd456

Please sign in to comment.