diff --git a/.travis.yml b/.travis.yml index a3e4900a01..0443b8c7fd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,13 @@ before_install: - if [[ $(node --version) != v10* ]] ; then node scripts/remove-dev-dependencies.js puppeteer; fi + # This package is a transitive dependency which discontinued support for + # legacy Node.js versions in a patch release. Explicitly installing the + # compatible version as a dependency induces npm to use that version when + # installing modules. + - if [[ $(node --version) != v10* ]] ; then + npm install --no-package-lock --save-dev cli-table@0.3.1; + fi script: - npm run pretest - npm run $CMD diff --git a/appveyor.yml b/appveyor.yml index 1351b01d32..37f2bd4639 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -18,6 +18,11 @@ install: # they are only needed to verify correctness in a browser-like environment, # they can be removed (and the tests skipped) without effecting coverage. - if NOT "%nodejs_version%" == "10" node scripts/remove-dev-dependencies.js puppeteer + # This package is a transitive dependency which discontinued support for + # legacy Node.js versions in a patch release. Explicitly installing the + # compatible version as a dependency induces npm to use that version when + # installing modules. + - if NOT "%nodejs_version%" == "10" npm install --no-package-lock --save-dev cli-table@0.3.1 - npm install build: off