webpack-contrib / image-minimizer-webpack-plugin

Webpack loader and plugin to compress images using imagemin
MIT License
236 stars 38 forks source link

npm install failed #181

Closed clark-cui closed 3 years ago

clark-cui commented 3 years ago

Expected Behavior

i use npm install to download these packages,but i fail.Then i use yarn,i fail again.

Actual Behavior

download fail error

  gifsicle@5.1.0 postinstall F:\workspace_github\homeSite\node_modules\gifsicle
> node lib/install.js

  ‼ read ECONNRESET
  ‼ gifsicle pre-build test failed
  i compiling from source
  × Error: Command failed: C:\Windows\system32\cmd.exe /s /c "autoreconf -ivf"
'autoreconf' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

    at F:\workspace_github\homeSite\node_modules\bin-build\node_modules\execa\index.js:231:11
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async Promise.all (index 0)

Code

npm install imagemin-gifsicle imagemin-jpegtran imagemin-optipng imagemin-svgo --save-dev
yarn add imagemin-gifsicle imagemin-jpegtran imagemin-optipng imagemin-svgo -D

How Do We Reproduce?

you can see my code in here. option file is in config,webpack.common.js. you can use these commands to repeat my problem.

git clone https://github.com/clark-cui/homeSite
npm i
npm install imagemin-gifsicle imagemin-jpegtran imagemin-optipng imagemin-svgo --save-dev
alexander-akait commented 3 years ago

You don't have autoreconf or something wrong with autoreconf, this error from imagemin-gifsicle, please open the issue in imagemin-gifsicle repo, thanks