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
If ping raw.githubusercontent.com timed out add hosts
npm cache clean -f
ping raw.githubusercontent.com againAny 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
gifsicle