cannot install optional dependence mozjpeg
See original GitHub issuestuck 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:
- Created 4 years ago
- Reactions:5
- Comments:5
Try
brew install automake
if you’re using macOS This works well for meI 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