upgrade npm before using it

This commit is contained in:
Daniel Schep 2019-05-23 12:01:42 -04:00
parent 9df621eaf6
commit 43eb30029f

View File

@ -36,8 +36,8 @@ matrix:
env: SLS_IGNORE_WARNING=*
sudo: false
install:
- travis_retry npm install
- "[ $TRAVIS_OS_NAME = windows ] || travis_retry npm install -g npm"
- travis_retry npm install
# ensure that Python 2 and Ruby are installed
- if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get install python ruby; else choco install python2 ruby; fi
- if [ $TRAVIS_OS_NAME = windows ]; then export PATH="/c/Python27:/c/Python27/Scripts:$PATH"; fi