Update setup-min.sh

This commit is contained in:
AJ ONeal 2017-05-15 22:12:58 -06:00
parent 6dde1965fc
commit 1c05eb8a68
1 changed files with 2 additions and 1 deletions

View File

@ -222,7 +222,8 @@ fi
#
if [ -z "${NODE_PATH-}" ]; then
if [ -n "$(type -p node | grep node 2>/dev/null)" ]; then
node_install_path="$(type -p node)"
# /usr/local/bin/node => /usr/local
node_install_path="$(dirname $(dirname $(type -p node)))"
else
node_install_path=$PREFIX/usr/local
fi