change perms on /usr/local/lib/node_modules/ only

This commit is contained in:
AJ ONeal 2016-04-18 09:55:37 -06:00
parent 3f364aa1ed
commit 4f96105db3
1 changed files with 2 additions and 2 deletions

View File

@ -19,6 +19,6 @@ if [ -n "${NODEJS_VER}" ]; then
echo "installing ${NODEJS_NAME} as ${NODEJS_NAME} ${NODEJS_VER}..."
curl -fsSL "${NODEJS_REMOTE}" -o "${NODEJS_PKG}"
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