From 1c05eb8a68c8da3248205b6c407c3498268d24c3 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 15 May 2017 22:12:58 -0600 Subject: [PATCH] Update setup-min.sh --- setup-min.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup-min.sh b/setup-min.sh index 3f3f6db..7f8b214 100644 --- a/setup-min.sh +++ b/setup-min.sh @@ -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