From 996a71b6e3a12e248be779ded37073266a412ef6 Mon Sep 17 00:00:00 2001 From: Caio Ferreira Silva Date: Thu, 22 Aug 2024 17:20:20 +0000 Subject: [PATCH] Set maxsockets for npm install during build to avoid network errors --- Docker/install_nodejs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Docker/install_nodejs.sh b/Docker/install_nodejs.sh index f8f65a75..bb325ae8 100644 --- a/Docker/install_nodejs.sh +++ b/Docker/install_nodejs.sh @@ -17,6 +17,6 @@ fi if [ -x "$(command -v npm)" ]; then echo "NPM detected. Version : $(npm -v)" fi -npm install --unsafe-perm +npm install --unsafe-perm $([ `dpkg --print-architecture` = "arm64" ] && echo --maxsockets 1) npm i pm2@latest -g npm i pg