From f25860861caea36ab948853852aab82ec0ff7fbd Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Wed, 30 Nov 2016 19:15:06 +0800 Subject: [PATCH] [New] Set nobinary=1 for Alpine Linux before nodejs provides it --- nvm.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvm.sh b/nvm.sh index e475194..9990527 100755 --- a/nvm.sh +++ b/nvm.sh @@ -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