allow npm to install to /usr/local/bin/

This commit is contained in:
AJ ONeal 2016-04-18 10:00:44 -06:00
parent 4f96105db3
commit 0241804132
1 changed files with 2 additions and 1 deletions

View File

@ -20,5 +20,6 @@ if [ -n "${NODEJS_VER}" ]; then
curl -fsSL "${NODEJS_REMOTE}" -o "${NODEJS_PKG}"
sudo /usr/sbin/installer -pkg "${NODEJS_PKG}" -target /
sudo chown -R $(whoami) /usr/local/lib/node_modules/ 2>/dev/null
sudo chown -R $(whoami) /usr/local/lib/node_modules/
sudo chown $(whoami) /usr/local/bin/
fi