I'm also experiencing this issue when I'm trying to execute "npm ci" I have also set the "npm config set maxsockets 3" parameter, but no success.
This is the error I receive:
npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
npm WARN deprecated formidable@1.2.6: Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau
npm ERR! code 1
npm ERR! path /Volumes/workspace/repository/node_modules/sharp
npm ERR! command failed
npm ERR! command sh -c (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-*** rebuild && node install/dll-copy)
npm ERR! sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.14.5/libvips-8.14.5-darwin-x64.tar.br
npm ERR! sharp: Please see https://sharp.pixelplumbing.com/install for required dependencies
npm ERR! sharp: Installation error: connect ECONNRESET 140.82.113.4:443
npm ERR! A complete log of this run can be found in: /Users/local/.npm/_logs/2024-01-26T13_17_09_670Z-debug-0.log
Any other ideas how this can be resolved?