mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2026-08-24 10:05:29 -05:00
Test for npm before brew install
This commit is contained in:
+3
-2
@@ -35,11 +35,12 @@ if [ `uname` = "Linux" ]; then
|
||||
curl -sL https://rpm.nodesource.com/setup_10.x | sudo bash -
|
||||
sudo yum install -y nodejs
|
||||
fi
|
||||
elif [ `uname` = "Darwin" ] && type brew; then
|
||||
elif [ `uname` = "Darwin" ] && type brew && ! npm version>/dev/null 2>&1; then
|
||||
# Install npm if not installed
|
||||
brew install npm
|
||||
elif [ `uname` = "Darwin" ] && ! type brew; then
|
||||
echo "Installation requires brew on MacOS"
|
||||
echo "Installation currently requires brew on MacOS"
|
||||
echo "Instructions here: https://brew.sh/"
|
||||
fi
|
||||
|
||||
# this fancy syntax sets INSTALL_PYTHON_PATH to "python3.7" unless INSTALL_PYTHON_VERSION is defined
|
||||
|
||||
Reference in New Issue
Block a user