Problem with installing netlify-cli

OS: Debian 12.5.0

When I try to install netlify-cli via terminal, I get this

$ npm install -g netlify-cli
npm WARN deprecated source-map-url@0.4.1: See
npm WARN deprecated urix@0.1.0: Please see
npm WARN deprecated resolve-url@0.2.1:
npm WARN deprecated source-map-resolve@0.5.3: See
npm ERR! code 1
npm ERR! path /home/username/.nvm/versions/node/v20.11.1/lib/node_modules/netlify-cli/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-gyp rebuild && node install/dll-copy)
npm ERR! sharp: Downloading
npm ERR! sharp: Please see for required dependencies
npm ERR! sharp: Installation error: Request timed out

npm ERR! A complete log of this run can be found in: /home/username/.npm/_logs/2024-02-16T16_46_14_992Z-debug-0.log

I already installed sharp

$ npm list -g --depth=0
├── corepack@0.23.0
├── npm@10.2.4
└── sharp@0.33.2

Here is the log file mentioned above (in npm install -g netlify-cli:

And two other things:

  1. It won’t let me upload a .log text file because it is “unauthorized”. It will only let me upload .png and .zip and so on
  2. It won’t even let me paste the whole thing, there is a character limit.

It says request timed out, so looks like a network error to me?

But sharp is already installed and my network is good

Okay, but that’s what the error in the logs says. Not sure if there’s something Netlify can help with here.