Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'autoreconf' is not recognized as an internal or external command #1804

Closed
kristofferjalen opened this issue Oct 1, 2019 · 12 comments
Closed

Comments

@kristofferjalen
Copy link

Installation 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

...
> [email protected] 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.
...
@endiliey
Copy link
Contributor

endiliey commented Oct 1, 2019

I couldn't reproduce. From the log, its most likely environment problem, we can't do anything from our side to fix it.

You should open an issue with gifsicle if you think they are doing something incorrectly.

@endiliey
Copy link
Contributor

endiliey commented Oct 1, 2019

What is your environment ? try npx envinfo and copy the result.

@kristofferjalen
Copy link
Author

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:

@endiliey
Copy link
Contributor

endiliey commented Oct 2, 2019

You might consider a fork to remove imagemin. We definitely need it to optimize the image. Removing it would mean breaking changes.

@kristofferjalen
Copy link
Author

Ok, I understand. I close the ticket then. Thanks.

@xianghongai
Copy link

gifsicle pre-build test failed

[4/4] Building fresh packages...
[-/6] ⠠ waiting...                                                                                                                                                      [6/6] ⠠ optipng-bin                                                                                                                                                     [-/6] ⠐ waiting...                                                                                                                                                      [4/6] ⠐ gifsicle                                                                                                                                                        error D:\ctms\node_modules\gifsicle: Command failed.
Exit code: 1
Command: node lib/install.js
Arguments:
Directory: D:\ctms\node_modules\gifsicle
Output:
‼ 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���
���������ļ���

gifsicle

@oo10
Copy link

oo10 commented Mar 26, 2020

I have the same problem. How can you solve it?

@Lumersgo
Copy link

In my case, 3 steps solved this problem.

@Hanhan93
Copy link

In my case, 3 steps solved this problem.

Can you tell me the specific commands to be executed in each step?thank you very much

@z970445720
Copy link

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

@Lumersgo
Copy link

In my case, 3 steps solved this problem.

Can you tell me the specific commands to be executed in each step?thank you very much

  • First step use command.exe

@laoxubuer
Copy link

install automake for windows resolve this problem for me
http://gnuwin32.sourceforge.net/packages/automake.htm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants