feat(install): Check for node 10 on install

If a version of node other than 10 is installed, error out.

fixes #1964
This commit is contained in:
Shane Tomlinson 2019-08-16 11:01:21 +01:00
Родитель c2ecd5bbce
Коммит 1cc2ff4e66
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 09D4F897B87A2D19
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -2,6 +2,13 @@
set -ex
node_version="$(node -v | cut -f 1 -d '.' | cut -f 2 -d 'v')"
if [ "$node_version" -ne "10" ]; then
echo "intall node 10 to continue installation"
echo "http://nodejs.org/"
exit 1
fi
if [[ ! $(which rustup) ]]; then
curl https://sh.rustup.rs -sSf | sh -s -- -y
export PATH=$PATH:$HOME/.cargo/bin/