Build error after updates MozJpeg@7.1.1
DaveDev13 opened this issue · comments
Hey, I'm having trouble assembling. jenkins outputs this message
mozjpeg@7.1.1 postinstall /var/lib/jenkins/workspace/my-dev/node_modules/imagemin-mozjpeg/node_modules/mozjpeg
How to fix it?
+1
+1
Any solutions? Work well on macOS. but still same issue when try build in jenkins
@DaveDev13
Can I see the detailed error log? then is this related to #67?
@1000ch looks like yep
12:48:52 npm ERR! code ELIFECYCLE
12:48:52 npm ERR! errno 1
12:48:52 npm ERR! mozjpeg@7.1.1 postinstall: `node lib/install.js`
12:48:52 npm ERR! Exit status 1
12:48:52 npm ERR!
12:48:52 npm ERR! Failed at the mozjpeg@7.1.1 postinstall script.
12:48:52 npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
12:48:52
12:48:52 npm ERR! A complete log of this run can be found in:
12:48:52 npm ERR! /home/node/.npm/_logs/2021-10-18T09_48_52_129Z-debug.log
12:48:52 The command '/bin/sh -c npm update' returned a non-zero code: 1
Same problem on our Gatsby project. I added the following to pin the older version that did work in my package.json
:
"resolutions": {
"mozjpeg": "7.1.0"
}
Then just ran yarn install
and committed the new package.json
and yarn.lock
files.
Same problem on our Gatsby project. I added the following to pin the older version that did work in my
package.json
:"resolutions": { "mozjpeg": "7.1.0" }
Tried it but it didn't help, I'll try again)
@VallyPepyako
Sorry, I couldn't get what kind of error happend from #68 (comment). Could you try node lib/install.js
in your node_mosules/mozjpeg-bin
directory?
Also have this issue: Here's the output from sudo cat /root/.npm/_logs/2021-10-22T23_48_13_207Z-debug.log
23919 error code ELIFECYCLE
23920 error errno 1
23921 error mozjpeg@7.1.1 postinstall: `node lib/install.js`
23921 error Exit status 1
23922 error Failed at the mozjpeg@7.1.1 postinstall script.
23922 error This is probably not a problem with npm. There is likely additional logging output above.
23923 verbose exit [ 1, true ]
This issue is a duplication of #67.