forked from coolaj86/node-installer.sh
allow npm to install to /usr/local/bin/
This commit is contained in:
parent
4f96105db3
commit
0241804132
|
@ -20,5 +20,6 @@ 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/lib/node_modules/ 2>/dev/null
|
sudo chown -R $(whoami) /usr/local/lib/node_modules/
|
||||||
|
sudo chown $(whoami) /usr/local/bin/
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue