Update setup-min.sh
This commit is contained in:
parent
6dde1965fc
commit
1c05eb8a68
|
@ -222,7 +222,8 @@ fi
|
||||||
#
|
#
|
||||||
if [ -z "${NODE_PATH-}" ]; then
|
if [ -z "${NODE_PATH-}" ]; then
|
||||||
if [ -n "$(type -p node | grep node 2>/dev/null)" ]; 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
|
else
|
||||||
node_install_path=$PREFIX/usr/local
|
node_install_path=$PREFIX/usr/local
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue