jestins
360
7
Mix

Issue with mix install on centos 6

Posted 1 year ago by jestins

Once I finished in my local(Windows) everything is working as expected, but when I try to do npm install in the server with non-root user it's throwing this error.

    Error: pngquant failed to build, make sure that libpng-dev is installed
    at Promise.all.then.arr (/home/***/node_modules/pngquant-bin/node_modules/bin-build/node_modules/execa/index.js:231:11)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:118:7)

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.

If I run the same with root user it works.

Anyone knows the issue.?

libpng-dev is already installed in server, I tried lot of solution and none helps.

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.