Skip to content

Commit

Permalink
chore: Add npm update to build script (#6656)
Browse files Browse the repository at this point in the history
Since #6629, npm 6 in the minimum version, so install it at setup time.
  • Loading branch information
tofumatt committed May 9, 2018
1 parent 9de56b0 commit 7bb1934
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/install-node-nvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ fi
echo -e $(status_message "Installing and updating NPM packages..." )
npm install

# Make sure npm is up-to-date
npm install npm -g

# There was a bug in NPM that caused changes in package-lock.json. Handle that.
if [ "$TRAVIS" != "true" ] && ! git diff --exit-code package-lock.json >/dev/null; then
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
Expand Down

0 comments on commit 7bb1934

Please sign in to comment.