From 8765ab62dcad6c22ed88e80bcaeb551c28672f8a Mon Sep 17 00:00:00 2001 From: Inthuson Date: Mon, 20 Jan 2025 17:07:50 +0000 Subject: [PATCH] Set x86_64 arch for local build --- publish.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/publish.sh b/publish.sh index c4b77a07..c86f8076 100755 --- a/publish.sh +++ b/publish.sh @@ -16,6 +16,11 @@ # export AWS_DEFAULT_REGION=eu-west-1 ############################################################################################## +# Set architecture for npm/node +export npm_config_arch=x64 +alias npm="arch -x86_64 npm" +alias node="arch -x86_64 node" + if ! [ -x "$(command -v npm)" ]; then echo 'Error: npm is not installed and required.' >&2 exit 1