ensure npm up to date

This commit is contained in:
Dave Conway-Jones
2018-08-15 13:37:28 +01:00
parent 4c555db31e
commit 8aa4e49399

View File

@@ -9,6 +9,7 @@ matrix:
- node_js: 10 - node_js: 10
before_script: before_script:
# Remove the './node_modules/.bin:' entry, see https://github.com/travis-ci/travis-ci/issues/8813 # Remove the './node_modules/.bin:' entry, see https://github.com/travis-ci/travis-ci/issues/8813
- npm i -g npm
- export PATH=`echo ${PATH} | sed -re 's,(^|:)(./)?node_modules/.bin($|:),\1,'` - export PATH=`echo ${PATH} | sed -re 's,(^|:)(./)?node_modules/.bin($|:),\1,'`
- npm install -g istanbul grunt-cli coveralls - npm install -g istanbul grunt-cli coveralls
- npm install node-red - npm install node-red