Skip to content

Commit 4800b7c

Browse files
authored
Revert "Build: remove global install of latest npm since we want to use the paired node/npm version (#17134)"
This reverts commit 0b4d9c8.
1 parent bd2604f commit 4800b7c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ branches:
2323
- master
2424

2525
before_install:
26-
- nvm install
26+
- nvm install --latest-npm
2727

2828
env: PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
2929

bin/install-node-nvm.sh

+3
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ fi
6969
echo -e $(status_message "Installing and updating NPM packages..." )
7070
npm install
7171

72+
# Make sure npm is up-to-date
73+
npm install npm -g
74+
7275
# There was a bug in NPM that caused changes in package-lock.json. Handle that.
7376
if [ "$TRAVIS" != "true" ] && ! git diff --no-ext-diff --exit-code package-lock.json >/dev/null; then
7477
if ask "$(warning_message "Your package-lock.json changed, which may mean there's an issue with your NPM cache. Would you like to try and automatically clean it up?" )" N 10; then

0 commit comments

Comments
 (0)