'autoreconf' is not recognized as an internal or external command
See original GitHub issueInstallation fails due to gifsicle requiring autoreconf not available on Windows.
Have you read the Contributing Guidelines on issues?
Yes.
To Reproduce
npm install docusaurus
Expected behavior
Installation succesful.
Actual Behavior
...
> gifsicle@4.0.1 postinstall C:\temp\docusaurus\node_modules\gifsicle
> node lib/install.js
‼ self signed certificate in certificate chain
‼ gifsicle pre-build test failed
i compiling from source
× Error: Command failed: C:\WINDOWS\system32\cmd.exe /s /c "autoreconf -ivf"
'autoreconf' is not recognized as an internal or external command,
operable program or batch file.
...
Issue Analytics
- State:
- Created 4 years ago
- Comments:12 (3 by maintainers)
Top Results From Across the Web
Error with autoreconf / Problems / Discussion Area
'autoreconf' is not recognized as an internal or external command, operable program or batch file. at ChildProcess.exithandler (child_process.js ...
Read more >autoreconf: command not found in Cygwin on Windows
Try install autoconf , automake and libtool . It's under Devel of the Cygwin setup program.
Read more >nimterop/Lobby - Gitter
nimcache\nimterop\build\libmodbus && autoreconf -fi result: 'autoreconf' is not recognized as an internal or external command, operable program or batch ...
Read more >trouble installing yarn packages on windows, cross platform ...
... Command failed: C:\WINDOWS\system32\cmd.exe /s /c "autoreconf -ivf" 'autoreconf' is not recognized as an internal or external command, ...
Read more >npm is not recognized as internal or external command ...
npm is not recognized as internal or external command operable program or batch file ... Install using Chocolatey ==> npm is not recognised....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

In my case, 3 steps solved this problem.
This seems to be related to #1758. I’m behind a corporate proxy, which seems block a process in the postinstallation script of gifsicle in which something is downloaded from GitHub. As a fallback gifsicle then compiles from source instead, throwing an error because it uses an executable that not exists on Windows.
I realize it’s not for docusaurus to fix, but maybe it could be an idea to review if this dependency is actually needed? Because as of now docusaurus can’t be installed by users behind corporate proxys, at least not by me.
References: