BigKompot
@BigKompot

Что за проблема при установке gulp-imagemin через npm?

node: v6.1.0
npm: 3.8.6

Пытаюсь установить gulp-imagemin, но при установке выпадает ошибка.
Вот выдача в консоли:
$ npm install --save-dev gulp-imagemin
npm WARN deprecated cross-spawn-async@2.2.4: cross-spawn no longer requires a build toolchain, use it instead!

> optipng-bin@3.1.2 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)

> jpegtran-bin@3.0.6 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)

> gifsicle@3.0.3 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 Такого же рода ошибки выпадают при попытках установить другие обработчики изображений (gulp-image-optimization, gulp-image)
  • Вопрос задан
  • 1196 просмотров
Решения вопроса 1
BigKompot
@BigKompot Автор вопроса
Подумал и предположил, что проблема заключается в сетевом подключении.
Прописал в роутере DNS от Google (8.8.8.8) и проблема решилась.
Imagemin скачался, корректно установился и заработал.
Ответ написан
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы