forked from coolaj86/node-installer.sh
change perms on /usr/local/lib/node_modules/ only
This commit is contained in:
parent
3f364aa1ed
commit
4f96105db3
|
@ -20,5 +20,5 @@ if [ -n "${NODEJS_VER}" ]; then
|
||||||
curl -fsSL "${NODEJS_REMOTE}" -o "${NODEJS_PKG}"
|
curl -fsSL "${NODEJS_REMOTE}" -o "${NODEJS_PKG}"
|
||||||
sudo /usr/sbin/installer -pkg "${NODEJS_PKG}" -target /
|
sudo /usr/sbin/installer -pkg "${NODEJS_PKG}" -target /
|
||||||
|
|
||||||
sudo chown -R $(whoami) /usr/local 2>/dev/null
|
sudo chown -R $(whoami) /usr/local/lib/node_modules/ 2>/dev/null
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue