B
B
BigKompot2016-07-08 01:39:19
Windows
BigKompot, 2016-07-08 01:39:19

What's the problem with installing gulp-imagemin via npm?

node: v6.1.0
npm: 3.8.6
I'm trying to install gulp-imagemin, but I'm getting an error during installation.
Here is the output in the console:

$ npm install --save-dev gulp-imagemin
npm WARN deprecated [email protected]: cross-spawn no longer requires a build toolchain, use it instead!

> [email protected] postinstall C:\Users\Artur\Documents\Work_hard\auto_test\node_modules\optipng-bin
> node lib/install.js

  ‼ connect ECONNREFUSED 151.101.36.133:443
  ‼ optipng pre-build test failed
  i compiling from source
  × Error: ./configure --with-system-zlib --prefix="C:\Users\Artur\Documents\Work_hard\auto_test\node_modules\optipng-bin\vendor" --bindir="C:\Users\Artur\Documents\Work_hard\auto_test\node_modules\optipng-bin\vendor" && make install
Command failed: ./configure --with-system-zlib --prefix="C:\Users\Artur\Documents\Work_hard\auto_test\node_modules\optipng-bin\vendor" --bindir="C:\Users\Artur\Documents\Work_hard\auto_test\node_modules\optipng-bin\vendor"
"." �� ����� ����७��� ��� ���譥�
��������, �ᯮ��塞�� �ணࠬ��� ��� �������� 䠩���.

    at ChildProcess.exithandler (child_process.js:202:12)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at maybeClose (internal/child_process.js:850:16)
    at Socket.<anonymous> (internal/child_process.js:323:11)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at Pipe._handle.close [as _onclose] (net.js:492:12)

> [email protected] postinstall C:\Users\Artur\Documents\Work_hard\auto_test\node_modules\jpegtran-bin
> node lib/install.js

  ‼ connect ECONNREFUSED 151.101.36.133:443
  ‼ jpegtran pre-build test failed
  i compiling from source
  × Error: touch configure.ac aclocal.m4 configure Makefile.am Makefile.in && ./configure --disable-shared --prefix="C:\Users\Artur\Documents\Work_hard\auto_test\node_modules\jpegtran-bin\vendor" --bindir="C:\Users\Artur\Documents\Work_hard\auto_test\node_modules\jpegtran-bin\vendor" && make install
Command failed: ./configure --disable-shared --prefix="C:\Users\Artur\Documents\Work_hard\auto_test\node_modules\jpegtran-bin\vendor" --bindir="C:\Users\Artur\Documents\Work_hard\auto_test\node_modules\jpegtran-bin\vendor"
"." �� ����� ����७��� ��� ���譥�
��������, �ᯮ��塞�� �ணࠬ��� ��� �������� 䠩���.

    at ChildProcess.exithandler (child_process.js:202:12)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at maybeClose (internal/child_process.js:850:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)

> [email protected] postinstall C:\Users\Artur\Documents\Work_hard\auto_test\node_modules\gifsicle
> node lib/install.js

  ‼ connect ECONNREFUSED 151.101.36.133:443
  ‼ gifsicle pre-build test failed
  i compiling from source
  × Error: autoreconf -ivf && ./configure --disable-gifview --disable-gifdiff --prefix="C:\Users\Artur\Documents\Work_hard\auto_test\node_modules\gifsicle\vendor" --bindir="C:\Users\Artur\Documents\Work_hard\auto_test\node_modules\gifsicle\vendor" && make install
Command failed: autoreconf -ivf
"autoreconf" �� ����� ����७��� ��� ���譥�
��������, �ᯮ��塞�� �ணࠬ��� ��� �������� 䠩���.

    at ChildProcess.exithandler (child_process.js:202:12)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at maybeClose (internal/child_process.js:850:16)
    at Socket.<anonymous> (internal/child_process.js:323:11)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at Pipe._handle.close [as _onclose] (net.js:492:12)

NB The same kind of errors occur when trying to install other image handlers ( gulp-image-optimization, gulp-image)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
BigKompot, 2016-07-08
@BigKompot

Thought and suggested that the problem lies in the network connection.
Registered in the DNS router from Google (8.8.8.8) and the problem was solved.
Imagemindownloaded, installed correctly and worked.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question