question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I have a problem when installing

See original GitHub issue
➜  hexagon  npm install grunt-contrib-imagemin --save-dev                                                           
npm WARN package.json hexagon@1.0.0 No repository field.
npm WARN package.json hexagon@1.0.0 No README data
\
> pngquant-bin@2.0.3 postinstall /media/id/2B4FED33394C4BBB/15. webdev/site/hexagon/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin
> node lib/install.js

  ⚠ Couldn't execute the `/media/id/2B4FED33394C4BBB/15. webdev/site/hexagon/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/vendor/pngquant` binary. Make sure it has the right permissions.
  ⚠ pngquant pre-build test failed
  ℹ compiling from source
  ✖ Error: pngquant failed to build, make sure that libpng-dev is installed
    at ChildProcess.exithandler (child_process.js:658:15)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:766:16)
    at Process.ChildProcess._handle.onexit (child_process.js:833:5)

> optipng-bin@2.0.4 postinstall /media/id/2B4FED33394C4BBB/15. webdev/site/hexagon/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-optipng/node_modules/optipng-bin
> node lib/install.js

  ⚠ Couldn't execute the `/media/id/2B4FED33394C4BBB/15. webdev/site/hexagon/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-optipng/node_modules/optipng-bin/vendor/optipng` binary. Make sure it has the right permissions.
  ⚠ optipng pre-build test failed
  ℹ compiling from source
  ✖ Error: ./configure --with-system-zlib --prefix="/media/id/2B4FED33394C4BBB/15. webdev/site/hexagon/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-optipng/node_modules/optipng-bin/vendor" --bindir="/media/id/2B4FED33394C4BBB/15. webdev/site/hexagon/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-optipng/node_modules/optipng-bin/vendor" && make install
Command failed: pngrtran.c:97:1: warning: ‘png_rtran_ok’ defined but not used [-Wunused-function]
 png_rtran_ok(png_structrp png_ptr, int need_IHDR)
 ^
pngxmem.c: In function ‘pngx_malloc_rows_extended’:
pngxmem.c:37:4: warning: comparison is always false due to limited range of data type [-Wtype-limits]
    if (row_size == 0 || height > (pngx_alloc_size_t)(-1) / sizeof(png_bytep))
    ^
rm: cannot remove ‘/media/id/2B4FED33394C4BBB/15.’: Is a directory
make[1]: [install] Error 1 (ignored)
rm: cannot remove ‘/media/id/2B4FED33394C4BBB/15.’: Is a directory
make[1]: [install] Error 1 (ignored)
cp: omitting directory ‘/media/id/2B4FED33394C4BBB/15.’
make[1]: *** [install] Error 1
make: *** [install] Error 2

    at ChildProcess.exithandler (child_process.js:658:15)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:766:16)
    at Socket.<anonymous> (child_process.js:979:11)
    at Socket.emit (events.js:95:17)
    at Pipe.close (net.js:466:12)

> jpegtran-bin@2.0.2 postinstall /media/id/2B4FED33394C4BBB/15. webdev/site/hexagon/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin
> node lib/install.js

  ⚠ Couldn't execute the `/media/id/2B4FED33394C4BBB/15. webdev/site/hexagon/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/vendor/jpegtran` binary. Make sure it has the right permissions.
  ⚠ jpegtran pre-build test failed
  ℹ compiling from source
  ✖ Error: ./configure --disable-shared --prefix="/media/id/2B4FED33394C4BBB/15. webdev/site/hexagon/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/vendor" --bindir="/media/id/2B4FED33394C4BBB/15. webdev/site/hexagon/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/vendor" && make install
Command failed: sed: read error on /media/id/2B4FED33394C4BBB/15.: Is a directory
./configure: line 1487: .: /media/id/2B4FED33394C4BBB/15.: is a directory
sed: read error on /media/id/2B4FED33394C4BBB/15.: Is a directory
./configure: line 1487: .: /media/id/2B4FED33394C4BBB/15.: is a directory
configure: error: no nasm (Netwide Assembler) found

    at ChildProcess.exithandler (child_process.js:658:15)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:766:16)
    at Process.ChildProcess._handle.onexit (child_process.js:833:5)

> gifsicle@2.0.1 postinstall /media/id/2B4FED33394C4BBB/15. webdev/site/hexagon/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle
> node lib/install.js

  ⚠ Couldn't execute the `/media/id/2B4FED33394C4BBB/15. webdev/site/hexagon/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/vendor/gifsicle` binary. Make sure it has the right permissions.
  ⚠ gifsicle pre-build test failed
  ℹ compiling from source
  ✖ Error: autoreconf -ivf && ./configure --disable-gifview --disable-gifdiff --prefix="/media/id/2B4FED33394C4BBB/15. webdev/site/hexagon/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/vendor" --bindir="/media/id/2B4FED33394C4BBB/15. webdev/site/hexagon/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/vendor" && make install
Command failed: /bin/sh: 1: autoreconf: not found

    at ChildProcess.exithandler (child_process.js:658:15)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:766:16)
    at Socket.<anonymous> (child_process.js:979:11)
    at Socket.emit (events.js:95:17)
    at Pipe.close (net.js:466:12)

grunt-contrib-imagemin@0.9.2 node_modules/grunt-contrib-imagemin
├── async@0.9.0
├── pretty-bytes@1.0.2 (get-stdin@1.0.0)
├── chalk@0.5.1 (escape-string-regexp@1.0.2, ansi-styles@1.1.0, supports-color@0.2.0, has-ansi@0.1.0, strip-ansi@0.3.0)
└── imagemin@3.1.0 (get-stdin@3.0.2, optional@0.1.2, stream-combiner@0.2.1, vinyl@0.4.6, concat-stream@1.4.7, through2@0.6.3, meow@2.1.0, imagemin-svgo@4.0.2, vinyl-fs@0.3.13, imagemin-pngquant@4.0.0, imagemin-optipng@4.2.0, imagemin-jpegtran@4.0.0, imagemin-gifsicle@4.1.0)
➜  hexagon 

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
maboiteaspamcommented, Jan 31, 2015

check the error messages and let us know if they seems justified. For example, see ✖ Error: pngquant failed to build, make sure that libpng-dev is installed

0reactions
kraftnercommented, Sep 21, 2015
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to troubleshoot Windows Installer errors - Microsoft Support
Describes how to troubleshoot problems that occur when you install, uninstall, or upgrade a program on a Windows-based computer by using Windows Installer....
Read more >
How to Fix the Most Common Windows 10 Installation Problems
Here's your guide to fixing those Windows 10 installation problems that could pop up when trying to upgrade or install from scratch.
Read more >
12 irritating Windows 10 installation issues, and how to fix them
Having trouble installing and setting up Windows 10? You aren't alone. Here are a dozen-plus of the most common problems, along with a...
Read more >
8 Ways to Fix Windows 10 if It Won't Install on Your PC
Windows 10 is not installing on your computer? You can start fixing it by checking for driver errors or corrupted updates.
Read more >
Windows 10 install issues — and what to do about them
Having trouble installing and setting up Win10? You aren't alone. Here are a dozen-plus of the most common problems, along with a few ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found