imagemin-gifsicle: Error: Command failed: C:\WINDOWS\system32\cmd.exe /s /c "autoreconf -ivf"

When I try to install gifsicle on Windows 10 Pro (with other gulp plugin I don’t have any problem):

npm install imagemin-gifsicle --save-dev

gifsicle@4.0.1 postinstall c:\Users.…\Documents.…\node_modules\gifsicle node lib/install.js

‼ tunneling socket could not be established, cause=connect ECONNREFUSED 127.0.0.1:80 ‼ gifsicle pre-build test failed i compiling from source × Error: Command failed: C:\WINDOWS\system32\cmd.exe /s /c “autoreconf -ivf” “autoreconf” non � riconosciuto come comando interno o esterno, un programma eseguibile o un file batch.

at Promise.all.then.arr (c:\Users\...\Documents\...\node_modules\execa\index.js:231:11)
at process._tickCallback (internal/process/next_tick.js:68:7)

npm WARN apodoc@1.0.0 No description npm WARN apodoc@1.0.0 No repository field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”})

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! gifsicle@4.0.1 postinstall: node lib/install.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the gifsicle@4.0.1 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

About this issue

  • Original URL
  • State: open
  • Created 5 years ago
  • Reactions: 20
  • Comments: 19

Most upvoted comments

If ping raw.githubusercontent.com timed out add hosts

52.74.223.119     github.com
192.30.253.119    gist.github.com
54.169.195.247    api.github.com
185.199.111.153   assets-cdn.github.com
151.101.76.133    raw.githubusercontent.com
151.101.76.133    gist.githubusercontent.com
151.101.76.133    cloud.githubusercontent.com
151.101.76.133    camo.githubusercontent.com
151.101.76.133    avatars0.githubusercontent.com
151.101.76.133    avatars1.githubusercontent.com
151.101.76.133    avatars2.githubusercontent.com
151.101.76.133    avatars3.githubusercontent.com
151.101.76.133    avatars4.githubusercontent.com
151.101.76.133    avatars5.githubusercontent.com
151.101.76.133    avatars6.githubusercontent.com
151.101.76.133    avatars7.githubusercontent.com
151.101.76.133    avatars8.githubusercontent.com

npm cache clean -f ping raw.githubusercontent.com again

Any one has fixed this issue, i am seeing the same error in windows . x Error: Command failed: C:\Windows\system32\cmd.exe /s /c “autoreconf -ivf” ‘autoreconf’ is not recognized as an internal or external command,

You can try to use cnpm of Taobao mirror: 1、npm install -g cnpm --registry=https://registry.npm.taobao.org 2、cnpm i -g gifsicle

Any ideas?

Global install with npm seems to fail on windows works fine when installed as dependency

@vsanse Which dependency was installed that worked for you?

gifsicle