forked from p34709852/monkey
Load NVM after installing in TravisCI script
This commit is contained in:
parent
3f83176f84
commit
6cf81304f8
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue