cli
cli copied to clipboard
`ipx` 2.x.x causes installation issues
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
- Run
npm install netlify-cli@latest
- 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