Merge branch 'fix/maxsockets-npm' into 'master'

Set maxsockets for npm install during build to avoid network errors

See merge request Shinobi-Systems/Shinobi!498
alpha
Moe 2024-08-22 17:20:20 +00:00
commit 4979b1d57e
1 changed files with 1 additions and 1 deletions

View File

@ -17,6 +17,6 @@ fi
if [ -x "$(command -v npm)" ]; then if [ -x "$(command -v npm)" ]; then
echo "NPM detected. Version : $(npm -v)" echo "NPM detected. Version : $(npm -v)"
fi fi
npm install --unsafe-perm npm install --unsafe-perm $([ `dpkg --print-architecture` = "arm64" ] && echo --maxsockets 1)
npm i pm2@latest -g npm i pm2@latest -g
npm i pg npm i pg