C
C
ComahonQQComahon2020-01-22 13:37:56
gulp.js
ComahonQQComahon, 2020-01-22 13:37:56

Why doesn't gulp-image work on win 7 x86?

Hello. Installing gulp image gives an error.

C:\Users\Сергей>cd desktop/myapp

C:\Users\Сергей\Desktop\myapp>npm install gulp-image

> gifsicle@4.0.1 postinstall C:\Users\Сергей\Desktop\myapp\node_modules\gifsicle

> node lib/install.jsgifsicle pre-build test passed successfully

> guetzli@2.0.0 postinstall C:\Users\Сергей\Desktop\myapp\node_modules\guetzli
> node lib/install.jsCommand failed: C:\Users\Сергей\Desktop\myapp\node_modules\guetzli\vendor\gu
etzli.exe --verbose
Guetzli JPEG compressor. Usage:
guetzli [flags] input_filename output_filename

Flags:
  --verbose    - Print a verbose trace of all attempts to standard output.
  --quality Q  - Visual quality to aim for, expressed as a JPEG quality value.
  --memlimit M - Memory limit in MB. Guetzli will fail if unable to stay under
                 the limit. Default is 6000 MB
  --nomemlimit - Do not limit memory usage.


  ‼ guetzli pre-build test failed
  i compiling from source
  × Error: Command failed: C:\Windows\system32\cmd.exe /s /c "mkdir -p C:\Users\
Сергей\Desktop\myapp\node_modules\guetzli\vendor"
�������� ��� 䠩� C:\Users\��ࣥ�\Desktop\myapp\node_modules\guetzli\vendor 㦥 ������
�.
�訡�� �� �६� ��ࠡ�⪨: C:\Users\��ࣥ�\Desktop\myapp\node_modules\guetzli\vendor.


    at C:\Users\Сергей\Desktop\myapp\node_modules\execa\index.js:231:11
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async Promise.all (index 0)

> jpeg-recompress-bin@4.0.0 postinstall C:\Users\Сергей\Desktop\myapp\node_modul
es\jpeg-recompress-bin
> node lib/install.js

  × Error: spawn UNKNOWN
    at ChildProcess.spawn (internal/child_process.js:405:11)
    at Object.spawn (child_process.js:548:9)
    at module.exports (C:\Users\Сергей\Desktop\myapp\node_modules\execa\index.js
:139:26)
    at C:\Users\Сергей\Desktop\myapp\node_modules\bin-check\index.js:16:11

> mozjpeg@6.0.1 postinstall C:\Users\Сергей\Desktop\myapp\node_modules\mozjpeg
> node lib/install.jsmozjpeg pre-build test passed successfully

> optipng-bin@6.0.0 postinstall C:\Users\Сергей\Desktop\myapp\node_modules\optip
ng-bin
> node lib/install.jsspawn UNKNOWNoptipng pre-build test failed
  i compiling from source
  × Error: Command failed: C:\Windows\system32\cmd.exe /s /c "./configure --with
-system-zlib --prefix="C:\Users\Сергей\Desktop\myapp\node_modules\optipng-bin\ve
ndor" --bindir="C:\Users\Сергей\Desktop\myapp\node_modules\optipng-bin\vendor""
"." �� ���� ����७��� ��� ���譥�
��������, �ᯮ��塞�� �ணࠬ��� ��� ������ 䠩���.


    at C:\Users\Сергей\Desktop\myapp\node_modules\execa\index.js:231:11
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async Promise.all (index 0)
npm WARN myapp@1.0.0 No description
npm WARN myapp@1.0.0 No repository field.
npm WARN myapp@1.0.0 No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! optipng-bin@6.0.0 postinstall: `node lib/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the optipng-bin@6.0.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional log
ging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Сергей\AppData\Roaming\npm-cache\_logs\2020-01-22T10_33_28
_091Z-debug.log

C:\Users\Сергей\Desktop\myapp>

Tried to solve the problem as described here did not help.
Windows 7 x86
node -v
v13.7.0

npm -v
6.13.6


gulp -v
CLI version: 2.2.0
Local version: Unknown

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AnRADI, 2020-02-02
@ComahonQQComahon

I solved the problem with [email protected] (I myself suffered for a long time). Write this:
npm install --save-dev [email protected]
It does not accept the version above for windows 7.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question