-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Labels
Description
I am unsure if my environment is weirdly polluted, or this is a real issue.
Installation completes:
$ yarn add -D sharp-cli
➤ YN0000: · Yarn 4.6.0
➤ YN0000: ┌ Resolution step
➤ YN0085: │ + sharp-cli@npm:5.1.0, @emnapi/runtime@npm:1.3.1, @img/sharp-darwin-arm64@npm:0.33.5, and 42 more.
➤ YN0000: └ Completed in 0s 748ms
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed
➤ YN0000: ┌ Link step
➤ YN0007: │ sharp@npm:0.33.5 must be built because it never has been before or the last one failed
➤ YN0000: └ Completed in 0s 387ms
➤ YN0000: · Done in 1s 306msCommand runs:
$ yarn run sharp
Missing required arguments: input, output
Specify --help for available options
$ yarn sharp -i './img.gif' --animated --format webp --lossless -o '{dir}/{base}.webp'
/****/img.gif.webp--version works:
$ yarn run sharp --version
5.1.0But --help does not:
$ yarn run sharp --help
stripAnsi is not a function
Specify --help for available optionsEnvironment:
$ yarn dlx -q envinfo --preset jest
System:
OS: Linux 6.6 Arch Linux
CPU: (12) x64 Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
Binaries:
Node: 22.13.0 - /tmp/xfs-5f1fe49e/node
Yarn: 4.6.0 - /tmp/xfs-5f1fe49e/yarn
npm: 10.9.2 - ~/.cache/node/bin/npm