Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Commit

Permalink
fix: dependencies mismatch for node in install script (#649)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeubs committed Jul 8, 2022
1 parent 432d4a8 commit 532c169
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,16 @@ function install_dependencies(){
sudo $PKG_MANAGER update
sudo $PKG_MANAGER upgrade

#Yarn depends on node version >= 12.0.0
#Yarn depends on node version >= 14.0.0
if [ "$basepkg" == "apt-get" ]; then
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt-get install nodejs -y
elif [ "$basepkg" == "yum" ]; then
if [[ $KERNEL_RELEASE =~ amzn2.x86_64 ]]; then
curl -sL https://rpm.nodesource.com/setup_12.x | bash -
curl -sL https://rpm.nodesource.com/setup_14.x | bash -
yum install nodejs -y
else
yum install nodejs12 -y
yum install nodejs14 -y
fi
fi

Expand Down

0 comments on commit 532c169

Please sign in to comment.