Actually try to install from source when the error message says "binary failed, trying source".
parent
a6f5eff0f3
commit
517817f1a3
5
nvm.sh
5
nvm.sh
|
@ -1247,13 +1247,16 @@ nvm() {
|
||||||
elif [ "$NVM_IOJS" != true ] && nvm_install_node_binary "$VERSION" "$REINSTALL_PACKAGES_FROM"; then
|
elif [ "$NVM_IOJS" != true ] && nvm_install_node_binary "$VERSION" "$REINSTALL_PACKAGES_FROM"; then
|
||||||
NVM_INSTALL_SUCCESS=true
|
NVM_INSTALL_SUCCESS=true
|
||||||
fi
|
fi
|
||||||
elif [ "$NVM_IOJS" = true ]; then
|
fi
|
||||||
|
if [ "$NVM_INSTALL_SUCCESS" != true ]; then
|
||||||
|
if [ "$NVM_IOJS" = true ]; then
|
||||||
# nvm_install_iojs_source "$VERSION" "$ADDITIONAL_PARAMETERS"
|
# nvm_install_iojs_source "$VERSION" "$ADDITIONAL_PARAMETERS"
|
||||||
echo "Installing iojs from source is not currently supported" >&2
|
echo "Installing iojs from source is not currently supported" >&2
|
||||||
return 105
|
return 105
|
||||||
elif nvm_install_node_source "$VERSION" "$ADDITIONAL_PARAMETERS"; then
|
elif nvm_install_node_source "$VERSION" "$ADDITIONAL_PARAMETERS"; then
|
||||||
NVM_INSTALL_SUCCESS=true
|
NVM_INSTALL_SUCCESS=true
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$NVM_INSTALL_SUCCESS" = true ] && nvm use "$VERSION"; then
|
if [ "$NVM_INSTALL_SUCCESS" = true ] && nvm use "$VERSION"; then
|
||||||
if [ ! -z "$REINSTALL_PACKAGES_FROM" ] \
|
if [ ! -z "$REINSTALL_PACKAGES_FROM" ] \
|
||||||
|
|
Loading…
Reference in New Issue