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

Build error after updates MozJpeg@7.1.1 #68

Closed
DaveDev13 opened this issue Oct 15, 2021 · 10 comments
Closed

Build error after updates MozJpeg@7.1.1 #68

DaveDev13 opened this issue Oct 15, 2021 · 10 comments

Comments

@DaveDev13
Copy link

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?

@makaiqian
Copy link

+1

1 similar comment
@imfangli
Copy link

+1

@VallyPepyako
Copy link

Any solutions? Work well on macOS. but still same issue when try build in jenkins

@1000ch
Copy link
Member

1000ch commented Oct 18, 2021

@DaveDev13
Can I see the detailed error log? then is this related to #67?

@VallyPepyako
Copy link

VallyPepyako commented Oct 18, 2021

@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

@TheKnarf
Copy link

TheKnarf commented Oct 18, 2021

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.

@VallyPepyako
Copy link

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)

@1000ch
Copy link
Member

1000ch commented Oct 22, 2021

@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?

@seanpmaxwell
Copy link

seanpmaxwell commented Oct 23, 2021

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 ]

@1000ch
Copy link
Member

1000ch commented Oct 23, 2021

This issue is a duplication of #67.

@1000ch 1000ch closed this as completed Oct 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants