cli icon indicating copy to clipboard operation
cli copied to clipboard

`ipx` 2.x.x causes installation issues

Open Kemystra opened this issue 1 year ago • 3 comments

Describe the bug

Trying to install netlify-cli on npm may cause errors like this:

npm ERR! code 1
npm ERR! path /home/user/.local/lib/node_modules/ipx/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 https://github.com/lovell/sharp-libvips/releases/download/v8.14.5/libvips-8.14.5-linux-x64.tar.br
npm ERR! sharp: Please see https://sharp.pixelplumbing.com/install for required dependencies
npm ERR! sharp: Installation error: Request timed out

Older version of ipx depends on sharp 0.32.x, which uses a problematic custom install script (see unjs/ipx#202). Very recently, ipx have released a new major version (v3.0.0) to address this issue.

Steps to reproduce

  1. Run npm install netlify-cli@latest
  2. Installation failure

Configuration

No response

Environment

  System:
    OS: Linux 6.6 EndeavourOS
    CPU: (2) x64 Intel(R) Celeron(R) N4500 @ 1.10GHz
    Memory: 1.59 GB / 3.58 GB
    Container: Yes
    Shell: 3.6.4 - /usr/bin/fish
  Binaries:
    Node: 21.5.0 - /usr/bin/node
    Yarn: 1.22.21 - ~/.local/bin/yarn
    npm: 10.2.5 - ~/.local/bin/npm
    pnpm: 8.14.1 - ~/.local/bin/pnpm
    bun: 1.0.21 - /usr/bin/bun

Kemystra avatar Jan 12 '24 00:01 Kemystra

Is there any update on this issue?

tim-mehlhorn avatar May 19 '25 18:05 tim-mehlhorn

Is there any update on this issue?

it's been a while since I last used netlify-cli. I tried to install it today and the installation went smoothly other than the deprecation warnings. Pretty sure the issue could be marked as resolved now.

Kemystra avatar May 25 '25 07:05 Kemystra

I'm still running into this issue with netlify at 22.1.3. The issue is in ipx, which is significantly out of date; ipx 2.1.0 ingests sharp @ 0.32.6 which is broken.

Aaron-Empower avatar Jun 12 '25 00:06 Aaron-Empower

Resolved by #7231.

serhalp avatar Oct 29 '25 19:10 serhalp