Skip to content

Commit d71b80a

Browse files
committed
PATH workaround for Travis CI bug
Signed-off-by: Christopher Hiller <[email protected]>
1 parent 7544bd3 commit d71b80a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ stages:
88
# defaults
99
language: node_js
1010
node_js: '9'
11-
env: PATH=~/npm/node_modules/.bin:$PATH
1211
# `nvm install` happens before the cache is restored, which means
1312
# we must install our own npm elsewhere (`~/npm`)
1413
before_install: |
@@ -17,6 +16,8 @@ before_install: |
1716
cd ~/npm && npm install npm
1817
cd -
1918
} || true
19+
# avoids bugs around https://github.com/travis-ci/travis-ci/issues/5092
20+
export PATH=~/npm/node_modules/.bin:$PATH
2021
# this avoids compilation in most cases (where we don't need it)
2122
install: npm ci --ignore-scripts
2223
cache:

0 commit comments

Comments
 (0)