[New] Set nobinary=1 for Alpine Linux before nodejs provides it

This commit is contained in:
Peter Dave Hello 2016-11-30 19:15:06 +08:00
parent 423f420884
commit f25860861c

4
nvm.sh
View File

@ -2434,8 +2434,8 @@ nvm() {
NVM_INSTALL_SUCCESS=true
else
if [ "_$NVM_OS" = "_freebsd" ]; then
# node.js and io.js do not have a FreeBSD binary
if [ "_$NVM_OS" = "_freebsd" ] || [ "_$NVM_OS" = "_alpine_linux" ]; then
# node.js and io.js do not have a FreeBSD / Alpine linux binary
nobinary=1
nvm_err "Currently, there is no binary for $NVM_OS"
elif [ "_$NVM_OS" = "_sunos" ]; then