Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to access --help #93

Open
la-magra opened this issue Jan 10, 2025 · 1 comment
Open

Unable to access --help #93

la-magra opened this issue Jan 10, 2025 · 1 comment
Labels

Comments

@la-magra
Copy link

la-magra commented Jan 10, 2025

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 306ms

Command 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.0

But --help does not:

$ yarn run sharp --help
stripAnsi is not a function

Specify --help for available options

Environment:

$ 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
@vseventer
Copy link
Owner

Might be an issue with your local - try removing all modules, clearing any cache, and install from scratch. Hope that helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants