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.

grunt-contrib-imagemin failed with "gifsicle@0.1.7"

See original GitHub issue

My name is Charley and working in IBM, I work with my partner to build a clamari GUI client file with the instruction in https://github.com/ceph/romana

My build environment is: [root@acme64 ~]# node --version v0.12.7 [root@acme64 ~]# npm --version 2.13.2 [root@acme64 ~]# grunt --version grunt-cli v0.1.13 [root@acme64 ~]# gem --version 1.8.24 [root@acme64 ~]# bower --version 1.4.1 [root@acme64 ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.6 (Santiago) [root@acme64 ~]#

In the last step it failed in make build-real with the error message:

gifsicle@0.1.7 postinstall /temp/calamari-repo/calamari-clients/manage/node_modules/grunt-contrib-imagemin/node_modules/gifsicle node index.js

â pre-build test failed, compiling from source… stream.js:94 throw er; // Unhandled stream error in pipe. ˆ Error: invalid tar file at Extract.Parse._startEntry (/temp/calamari-repo/calamari-clients/manage/node_modules/grunt-contrib-imagemin/node_modules/gifsicle/node_modules/bin-build/node_modules/download/node_modules/decompress/node_modules/tar/lib/parse.js:145:13) at Extract.Parse._process (/temp/calamari-repo/calamari-clients/manage/node_modules/grunt-contrib-imagemin/node_modules/gifsicle/node_modules/bin-build/node_modules/download/node_modules/decompress/node_modules/tar/lib/parse.js:127:12) at BlockStream.<anonymous> (/temp/calamari-repo/calamari-clients/manage/node_modules/grunt-contrib-imagemin/node_modules/gifsicle/node_modules/bin-build/node_modules/download/node_modules/decompress/node_modules/tar/lib/parse.js:47:8) at BlockStream.emit (events.js:107:17) at BlockStream._emitChunk (/temp/calamari-repo/calamari-clients/manage/node_modules/grunt-contrib-imagemin/node_modules/gifsicle/node_modules/bin-build/node_modules/download/node_modules/decompress/node_modules/tar/node_modules/block-stream/block-stream.js:145:10) at BlockStream.resume (/temp/calamari-repo/calamari-clients/manage/node_modules/grunt-contrib-imagemin/node_modules/gifsicle/node_modules/bin-build/node_modules/download/node_modules/decompress/node_modules/tar/node_modules/block-stream/block-stream.js:58:15) at Extract.Reader.resume (/temp/calamari-repo/calamari-clients/manage/node_modules/grunt-contrib-imagemin/node_modules/gifsicle/node_modules/bin-build/node_modules/download/node_modules/decompress/node_modules/tar/node_modules/fstream/lib/reader.js:255:34) at DirWriter.<anonymous> (/temp/calamari-repo/calamari-clients/manage/node_modules/grunt-contrib-imagemin/node_modules/gifsicle/node_modules/bin-build/node_modules/download/node_modules/decompress/node_modules/tar/lib/extract.js:57:8) at DirWriter.emit (events.js:104:17) at /temp/calamari-repo/calamari-clients/manage/node_modules/grunt-contrib-imagemin/node_modules/gifsicle/node_modules/bin-build/node_modules/download/node_modules/decompress/node_modules/tar/node_modules/fstream/lib/dir-writer.js:39:8

pngquant-bin@0.1.7 postinstall /temp/calamari-repo/calamari-clients/manage/node_modules/grunt-contrib-imagemin/node_modules/pngquant-bin node index.js

â pre-build test passed successfully npm ERR! Linux 2.6.32-504.30.3.el6.x86_64 npm ERR! argv “/usr/local/bin/node” “/usr/local/bin/npm” “install” “–loglevel” “warn” npm ERR! node v0.12.7 npm ERR! npm v2.11.3 npm ERR! code ELIFECYCLE

npm ERR! gifsicle@0.1.7 postinstall: node index.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the gifsicle@0.1.7 postinstall script ‘node index.js’. npm ERR! This is most likely a problem with the gifsicle package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node index.js npm ERR! You can get their info via: npm ERR! npm owner ls gifsicle npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /temp/calamari-repo/calamari-clients/manage/npm-debug.log make[1]: *** [build-stamp] Error 1

Could you please help me to find the root cause of this issue and provide the resolution?

Thanks a lot;

Charley

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
curioustusharcommented, Mar 6, 2017

I had the same issue on Ubuntu 16.04, fixed after installing gifsicle using commandsudo apt-get install gifsicle.

after that grunt-contrib-imagemin installed without any issues.

0reactions
sindresorhuscommented, Sep 22, 2017

Closing to clean up the issue tracker. If this is still an issue, open an issue on the relevant Imagemin plugin/binary repo instead.

Read more comments on GitHub >

github_iconTop Results From Across the Web

grunt-contrib-imagemin failed with "gifsicle@0.1.7" - - Bountysource
My name is Charley and working in IBM, I work with my partner to build a clamari GUI client file with the instruction...
Read more >
Cannot install grunt-contrib-imagemin in Windows 8.1
I cannot install grunt-contrib-imagemin on my Windows 8.1 machine. ... npm WARN optional dep failed, continuing imagemin-gifsicle@4.0.0 npm ...
Read more >
grunt-contrib-imagemin - npm
Plugins to use with imagemin. It comes bundled with the following lossless optimizers: gifsicle — Compress GIF images; jpegtran — Compress JPEG ...
Read more >
Gradle deploy fails while running imagemin:dist
cd openspecimen/www. get version of imagemin npm list grunt-contrib-imagemin. run grunt build to show stack trace grunt build --stack.
Read more >
generator-angular-fullstackでnpm installの際にgifsicleの ...
gifsicle @0.1.7 postinstall /home/endok/mean/node_modules/grunt-contrib- ... node index.js ⚠ pre-build test failed, compiling from source.…
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