From 477353e1a48a64912b4e2dc2cce9c6784ed82ab5 Mon Sep 17 00:00:00 2001 From: Michael Zanggl Date: Wed, 20 Dec 2023 15:40:28 +0900 Subject: [PATCH] add ARCH overwrite --- nvm.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nvm.sh b/nvm.sh index 2e4378f2d2..f71145e903 100644 --- a/nvm.sh +++ b/nvm.sh @@ -1923,6 +1923,11 @@ nvm_get_arch() { local EXIT_CODE local LONG_BIT + if [ -n "$NVM_NODEJS_ORG_ARCH" ]; then + nvm_echo "${NVM_NODEJS_ORG_ARCH}" + return + fi + NVM_OS="$(nvm_get_os)" # If the OS is SunOS, first try to use pkgsrc to guess # the most appropriate arch. If it's not available, use