Closed nicolinuxfr closed 6 years ago
Thanks @nicolinuxfr, am I right that you've followed the manual installation? This is an oversight on my part because the osascript directory is needed as well as the binary. Could you confirm though incase I'm on the wrong track? Thanks a lot.
Nope, I used the recommended way : npm install -g imageoptim-cli
I tried with and without sudo
, for information.
oh...oh dear 😄 I am on a different machine now to the one I developed the new version in so I will install it here and see if I can reproduce it.
this is the problem line https://github.com/JamieMason/ImageOptim-CLI/blob/3faa790f9088e5988eccb897a67111dd54d4f57d/src/applescript.ts#L14
I think using https://github.com/nexe/nexe to create a self contained executable is causing __dirname
to not behave in the way I would expect. I'll get this fixed urgently.
Great news if you can fix it easily. :-)
I seem to have it working locally, will release soon.
Please give 2.0.2 a try and reopen if there are still issues, thanks.
Works great with 2.0.2, thanks for the quick fix ! 👍
you're welcome Nicolas, it was a big one so it needed sorting ASAP 😄
Types of Changes
What types of changes does your issue require? Put an
x
in all the boxes that apply:Description
After installing the latest version of ImageOptim using npm, I have the following error when I try to activate JPEG mini :
I checked, and indeed, I have no
osascripts
folder inside my home folder.Setup
macOS High Sierra 10.13.4
npm 5.10.0
node 10.1.0
JPEGmini standard 2.2.1