Closed kookline closed 3 weeks ago
Hi, @kookline! Thanks for reporting the bug.
This is an old issue related to installing the guetzli module, which Optimizt uses for lossless JPEG image optimization. Two years ago, I asked the module’s author to fix the problem and even made a PR, but I didn’t get a reply.
In the old version from the funboxteam scope, we used a modified version of guetzli. After moving to the 343dev scope, I switched back to the original version. It seems the installation problem only happens on Windows systems that don’t use WSL, so I didn’t encounter it during the transition.
I’ve forked the guetzli repository, fixed the issue, and now Optimizt will use my patched version.
Version 9.0.2 with this fix is already available on npm. Please try installing it and let me know how it goes.
Thanks for the very swift reply, and new version !
I can confirm it works now.
Hello @343dev seems like the problem came back, I'm using version 9.1.0 on OSX
# This file contains the result of Yarn building a package (guetzli@https://github.com/343dev/guetzli-bin.git#commit=427cef566261dfcde63c7f8aaebf1a47d8738150)
# Script name: postinstall
Command failed: /Users/zaosoula/Github/mobilitycare-root/node_modules/guetzli/vendor/guetzli /Users/zaosoula/Github/mobilitycare-root/node_modules/guetzli/test/fixtures/test.jpg /Users/zaosoula/Github/mobilitycare-root/node_modules/guetzli/test/fixtures/dest.jpg
Can't open input file
guetzli pre-build test failed
compiling from source
guetzli built successfully
node:internal/process/promises:288
triggerUncaughtException(err, true /* fromPromise */);
^
[Error: ENOENT: no such file or directory, open '/Users/zaosoula/Github/mobilitycare-root/node_modules/guetzli/vendor/source/guetzli-1.0.1.tar.gz'] {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/Users/zaosoula/Github/mobilitycare-root/node_modules/guetzli/vendor/source/guetzli-1.0.1.tar.gz'
}
Node.js v18.20.2
Hello !
I ran
npm i -g @343dev/optimizt
on a brand new windows 10 sandbox with node v20.18.0 just installed and I get an issue. I tried as well with every other version of the module published, and none worked. However, the funboxteam version installed properly without issues, if that can help you find what changed.Here's the stdout I get :
I also added the complete npm log as a file
Let me know if you need any more information on the issue.
Thanks in advance !