Update file run_onchange_before_08-install-zx.tmpl
This commit is contained in:
parent
fe0adf7813
commit
75435489e0
1 changed files with 5 additions and 1 deletions
|
@ -8,7 +8,11 @@
|
|||
if ! command -v node > /dev/null; then
|
||||
if command -v brew; then
|
||||
logg 'Installing `node` via Homebrew'
|
||||
brew install node || brew link --overwrite node
|
||||
brew install node || NODE_EXIT_CODE=$?
|
||||
if [ -n "$NODE_EXIT_CODE" ]; then
|
||||
logg warn 'Calling `brew link --overwrite node` because the Node.js installation seems to be misconfigured'
|
||||
brew link --overwrite node
|
||||
fi
|
||||
else
|
||||
logg '`brew` is unavailable. Cannot use it to perform a system installation of node.'
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue