From 7e3448ad5b25aa088d67b24a4f7b5b616fc8840c Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Sat, 10 Apr 2021 22:31:59 -0500 Subject: [PATCH] Fix Travis build, do not try to use our local copy of npm to install itself --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index 2afda1d46..2f46f2ad7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -67,6 +67,10 @@ before_install: DISPLAY=nothing:0 git submodule update --init mailsync +# Resolves https://travis-ci.community/t/npm-ci-will-fail-if-cached-dependency-includes-npm/4203/6 +# Don't run the copy of npm inside node_modules when erasing + building the node_modules... +install: PATH=$(echo "$PATH" | sed 's/.\/node_modules\/.bin://') npm ci + before_script: - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start; fi