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

Problem on install #35

Closed
bipsBro opened this issue Oct 8, 2018 · 1 comment
Closed

Problem on install #35

bipsBro opened this issue Oct 8, 2018 · 1 comment

Comments

@bipsBro
Copy link

bipsBro commented Oct 8, 2018

Environment

OS: Ubuntu:18
npm: 5.6.0
node: 8.11.2

install command: npm install --save next-optimized-images

I got following log:

npm WARN deprecated [email protected]: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5

[email protected] postinstall /media/bipin/052ca934-ac82-4b85-b36a-f161177524d5/workspace/murcul-org/client-juven-frontend/node_modules/pngquant-bin
node lib/install.js

⚠ The /media/bipin/052ca934-ac82-4b85-b36a-f161177524d5/workspace/murcul-org/client-juven-frontend/node_modules/pngquant-bin/vendor/pngquant binary doesn't seem to work correctly
⚠ pngquant pre-build test failed
ℹ compiling from source
✔ pngquant pre-build test passed successfully
✖ Error: pngquant failed to build, make sure that libpng-dev is installed
at Promise.all.then.arr (/media/bipin/052ca934-ac82-4b85-b36a-f161177524d5/workspace/murcul-org/client-juven-frontend/node_modules/pngquant-bin/node_modules/bin-build/node_modules/execa/index.js:231:11)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
npm WARN [email protected] requires a peer of react@^0.14.0 || ^15.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of stylis@^3.5.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

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.

@cyrilwanner
Copy link
Owner

Hi @bipsBro

This error usually occurs when a required library is not installed on your system.
As far as I know, libpng16-dev is required by the png optimization package but it isn't pre-installed on every system. Can you try to install it and test it again? I think you should be able to do it on ubuntu with apt-get install libpng16-dev.

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

2 participants