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.

cannot install optional dependence mozjpeg

See original GitHub issue

stuck into this error when npm install:

gifsicle@5.0.0 postinstall /Users/jiangsigui/2019_lexin_leka_group/testDir/mini0210/node_modules/gifsicle node lib/install.js

⚠ connect ECONNREFUSED 151.101.228.133:443 ⚠ gifsicle pre-build test failed ℹ compiling from source ✖ Error: Command failed: /bin/sh -c autoreconf -ivf autoreconf: Entering directory `.’ autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --output=aclocal.m4t Can’t exec “aclocal”: No such file or directory at /usr/local/Cellar/autoconf/2.69/share/autoconf/Autom4te/FileUtils.pm line 326. autoreconf: failed to run aclocal: No such file or directory

at Promise.all.then.arr (/Users/jiangsigui/2019_lexin_leka_group/testDir/mini0210/node_modules/bin-build/node_modules/execa/index.js:231:11)
at process._tickCallback (internal/process/next_tick.js:68:7)

mozjpeg@6.0.1 postinstall /Users/jiangsigui/2019_lexin_leka_group/testDir/mini0210/node_modules/mozjpeg node lib/install.js

⚠ connect ECONNREFUSED 151.101.228.133:443 ⚠ mozjpeg pre-build test failed ℹ compiling from source

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:5
  • Comments:5

github_iconTop GitHub Comments

1reaction
Unequaled804commented, Jul 21, 2020

Try brew install automake if you’re using macOS This works well for me

1reaction
itruslercommented, Feb 15, 2020

I am having a similar issue with v7.1.0 on Ubuntu But only with gifsicle not mozjpeg. My current solution is to install gulp-imagemin@7.0.0

gifsicle@5.0.0 postinstall /home/user/Projects/.srcs/github.com/folder-name/gulp-ingredients-test/test-op-img/node_modules/gifsicle node lib/install.js

⚠ Response code 404 (Not Found) ⚠ gifsicle pre-build test failed ℹ compiling from source ✖ Error: Command failed: /bin/sh -c autoreconf -ivf /bin/sh: 1: autoreconf: not found

at Promise.all.then.arr (/home/user/Projects/.srcs/github.com/folder-name/gulp-ingredients->test/test-op-img/node_modules/bin-build/node_modules/execa/index.js:231:11) at <anonymous> at process._tickCallback (internal/process/next_tick.js:188:7)

mozjpeg@6.0.1 postinstall /home/user/Projects/.srcs/github.com/folder-name/gulp-ingredients-test/test-op-img/node_modules/mozjpeg node lib/install.js

✔ mozjpeg pre-build test passed successfully

optipng-bin@6.0.0 postinstall /home/user/Projects/.srcs/github.com/folder-name/gulp-ingredients-test/test-op-img/node_modules/optipng-bin node lib/install.js

✔ optipng pre-build test passed successfully npm WARN test-op-img@0.0.1 No description npm WARN test-op-img@0.0.1 No repository field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.11 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.11: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: gifsicle@5.0.0 (node_modules/gifsicle): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: gifsicle@5.0.0 postinstall: node lib/install.js npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

  • gulp-imagemin@7.1.0 added 274 packages from 197 contributors and audited 10521 packages in 28.12s found 0 vulnerabilities
Read more comments on GitHub >

github_iconTop Results From Across the Web

Gatsby build failing on mozjpeg - node.js - Stack Overflow
It fails because yarn:install cannot build mozjpeg . error /builds/my_project/gatsby/node_modules/mozjpeg: Command failed.
Read more >
npm not installing dependencies recursively, npm run dev ...
So the error "Cannot find module '/home/vagrant/projectname/webpack.mix'" is because ... sudo npm install npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ...
Read more >
How to Install MozJpeg on Ubuntu 18.04.3 - CodeFAQ
In this tutorial, we will teach you how to install mozjpeg on your Ubuntu from scratch, including some hiccups with dependencies problem.
Read more >
@wasm-codecs/mozjpeg - npm
Installation. npm install @wasm-codecs/mozjpeg. Requirements: Node.js 10 or later. Usage.
Read more >
【NPM】cnpm无法打包问题解决 - 掘金
You must install peer dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: mozjpeg@7.1.1 (node_modules/mozjpeg): npm WARN ...
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