webpack-contrib/image-minimizer-webpack-plugin

npm install failed

clark-cui opened this issue · 1 comments

  • Operating System: windows 10
  • Node Version: v14.15.1
  • NPM Version:v6.14.8
  • webpack Version:v5.12.3
  • image-minimizer-webpack-plugin Version:v2.2.0

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

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