try fix travis

This commit is contained in:
Eric Vergnaud 2020-10-04 00:07:30 +08:00
parent d5e2e4b4f3
commit 47d1332249
1 changed files with 2 additions and 0 deletions

View File

@ -7,5 +7,7 @@ sudo apt-get update -qq
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash - curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt-get install -qq nodejs sudo apt-get install -qq nodejs
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.36.0/install.sh | sudo -E bash - curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.36.0/install.sh | sudo -E bash -
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
sudo nvm use 14 sudo nvm use 14
node --version node --version