Load NVM after installing in TravisCI script

This commit is contained in:
Shay Nehmad 2020-05-11 16:44:13 +03:00
parent 3f83176f84
commit 6cf81304f8
1 changed files with 2 additions and 0 deletions

View File

@ -28,6 +28,8 @@ install:
- npm --version - npm --version
# Install NVM, see https://github.com/nvm-sh/nvm#installing-and-updating # 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 - 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 install node
- nvm use node - nvm use node
- npm i -g eslint - npm i -g eslint