2017-11-30 22:23:37 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
die () { echo "$@" ; exit 1; }
|
|
|
|
|
2020-12-27 17:09:29 +08:00
|
|
|
# Needed to avoid to checkout the repo to the latest nvm version, losing the commits of the current PR
|
|
|
|
unset NVM_DIR
|
2017-11-30 22:23:37 +08:00
|
|
|
NODE_VERSION=8 \. ../../install.sh
|
|
|
|
|
2021-01-09 01:54:40 +08:00
|
|
|
. "${NVM_DIR}/nvm.sh"
|
|
|
|
|
2017-11-30 22:23:37 +08:00
|
|
|
# nvm installed node 8
|
2017-11-30 22:33:01 +08:00
|
|
|
nvm ls 8 > /dev/null 2>&1 || die "nvm didn't install node 8"
|