0

I am trying to run the cli made for compress,

compress -i /Users/antoniopavicevac-ortiz/Sites/jcb-image-optimization/src -o /Users/antoniopavicevac-ortiz/Sites/jcb-image-optimization/dist/images

But got back:

compress: illegal option -- i usage: compress [-cfv] [-b bits] [file ...]

I tried to find help or a man page...

compress --h
compress --help
compress man

But I get the same error?

Antonio Pavicevac-Ortiz
  • 7,239
  • 17
  • 68
  • 141

1 Answers1

1

The output above is an error message for compress, a BSD general command that is already installed on your computer. You can view the man page for that program with man compress, or verify its location with which compress.

The CLI's README linked to above uses a Windows-style file hierarchy in its example. The author likely didn't encounter the compress namespace collision while writing the package.

To run this CLI, you'll need to find out where NPM installed the executable, and run it directly (e.g. /path/to/your/bin/compress -i something -o something).

Jake Worth
  • 5,490
  • 1
  • 25
  • 35