From 9f02180f1c87cdcb0050c5e2f7b8c74911606435 Mon Sep 17 00:00:00 2001 From: "P. Roebuck" Date: Sun, 25 Nov 2018 15:20:27 -0600 Subject: [PATCH] ci(.travis.yml,appveyor.yml): Use current npm version in CI scripts (#3579) The requirement for using npm-5.x was due to npm-6 dropping support for Node-4. Since Mocha now requires Node-6+, we should use the current verion of npm. This will also eliminate npm "Unsupported Node version" warnings when run against Node-11+. --- .travis.yml | 2 +- appveyor.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index f6153f6815..368bc98318 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,7 +21,7 @@ addons: before_install: | [[ ! -x ~/npm/node_modules/.bin/npm ]] && { # caching feature creates `~/npm` for us - cd ~/npm && npm install npm@^5 + cd ~/npm && npm install npm cd - } || true # avoids bugs around https://github.com/travis-ci/travis-ci/issues/5092 diff --git a/appveyor.yml b/appveyor.yml index da1cd9cbc4..32ed327dea 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -37,7 +37,7 @@ install: - set PATH=%APPDATA%\npm;C:\MinGW\bin;%PATH% - ps: Install-Product node $env:nodejs_version x64 - ps: Add-AppveyorMessage "Installing npm..." - - npm install -g npm@^5 + - npm install -g npm ## Mocha-related package installs - ps: Add-AppveyorMessage "Installing Mocha dependencies..." - npm ci --ignore-scripts