N
N
Nikita Salnikov2021-11-26 15:20:22
gulp.js
Nikita Salnikov, 2021-11-26 15:20:22

How to fix gulp startup error?

Hello. Please tell me how to fix the error when starting GULP:
$ gulp
[17:12:34] Using gulpfile C:\Desktop\for portfolio\myGulp\gulpfile.js
[17:12:34] Starting 'default'...
[17: 12:34] Starting 'html'...
[17:12:34] Starting 'style'...
[17:12:34] Starting 'js'...
[17:12:34] Starting 'img' ...
[17:12:34] Starting 'fonts'...
[17:12:34] Starting 'serve'...
[17:12:34] Starting 'watch'...
[17:12: 35] Finished 'html' after 1.54 s
[17:12:35] 'img' errored after 1.54 s
[17:12:35] Error in plugin "gulp-webp"
Message:
CoCreateInstance(MAKE_REFGUID(CLSID_WICImagingFactory), NULL, CLSCTX_INPROC_SERVER, MAKE_REFGUID(IID_IWICImagingFactory), (LPVOID*)&factory) failed 80040154
Couldn't access Windows Imaging Component (are you running Windows XP SP3 or newer?). Most formats not available. Use -s for the available
YUV input.
Decoding of input data failed.
Status: 3(BITSTREAM_ERROR)
Error! Could not process file C:\Temp\c919cbe4-a166-48d7-aa2a-1bf17cc861a3
Error! Cannot read input picture file 'C:\Temp\c919cbe4-a166-48d7-aa2a-1bf17cc861a3'

Details:
code: 4294967295
killed: false
stdout:
stderr: CoCreateInstance(MAKE_REFGUID(CLSID_WICImagingFactory), NULL, CLSCTX_INPROC_SERVER, MAKE_REFGUID(IID_IWICImagingFactory), (LPVOID*)&factory) failed 80040154
Couldn't access Windows Imaging Component (are you running Windows XP SP3 or newer?). Most formats not available. Use -s for the available
YUV input.
Decoding of input data failed.
Status: 3(BITSTREAM_ERROR)
Error! Could not process file C:\Temp\c919cbe4-a166-48d7-aa2a-1bf17cc861a3
Error! Cannot read input picture file 'C:\Temp\c919cbe4-a166-48d7-aa2a-1bf17cc861a3'

failed: true
signal: null
cmd: C:\Desktop\for portfolio\myGulp\node_modules\cwebp-bin\vendor\cwebp.exe -quiet -mt -o C:\Temp\fc7ff5f0-325d-4bda-8b4f-0143780e271a C:\Temp\c919cbe4- a166-48d7-aa2a-1bf17cc861a3
timedOut: false
fileName: C:\Desktop\for portfolio\myGulp\app\src\images\about__me-bg.png
domainEmitter: [object Object]
domainThrown: false

[17:12:35]' default' errored after 1.55 s

https://qna.habr.com/q/800207
Read this article did not help. The most incomprehensible thing is that the launch on course computers is normal. Doesn't work on home computer. Reinstalled the gulp-webp plugin.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Dubrovin, 2021-11-26
@alekcena

How does this article solve this problem? When an error occurs, you need to google it.
1) Do not give folders Russian names.
2) In your case, the problem is not solved. Well, or you need to abandon the img module.
The thing is that this module uses incompatible dependencies with a version less than win 10.
https://github.com/imagemin/cwebp-bin/issues/12

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question