From 6cf81304f8a1d222a0c3b39aaebb441480b028a4 Mon Sep 17 00:00:00 2001 From: Shay Nehmad Date: Mon, 11 May 2020 16:44:13 +0300 Subject: [PATCH] Load NVM after installing in TravisCI script --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) 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