Reputation: 95
I got an error during installing dependencies in gitlab pipeline. I don't know what can I do with this error. Could someone explain why does it appear?
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node lib/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-10-21T11_15_27_617Z-debug.log
Upvotes: 0
Views: 2135
Reputation: 978
If you don't push your node_modules and package-lock.json to your repository
That could be the well know problem in this version
https://github.com/imagemin/mozjpeg-bin/issues/68
I suggest you use old version "mozjpeg": "7.1.0", you need change it in package.json
If you push your node_modules and package-lock.json to your repository
You can try add this in your pipeline before your npm install
rm -rf node_modules package-lock.json
Upvotes: 1