diff --git a/.travis.yml b/.travis.yml index be1a4411b..5fcc7c4ad 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,6 +28,8 @@ install: - npm --version # Install NVM, see https://github.com/nvm-sh/nvm#installing-and-updating - curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash +- export NVM_DIR="$HOME/.nvm" +- [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm - nvm install node - nvm use node - npm i -g eslint