Can't install gifsicle

本文最后水于:2020年10月26日 中午


In a long time, i’m used to Hexo-all-minifier to optimization blog. But recently i can’t even install it.

The error logs with npm install:

  ‼ getaddrinfo ENOENT
  ‼ gifsicle pre-build test failed
  i compiling from source
  × Error: Command failed: C:\WINDOWS\system32\cmd.exe /s /c "autoreconf -ivf"
'autoreconf' �����ڲ����ⲿ���Ҳ���ǿ����еij���

In the beginning, i thought the problem is my windows can’t run autoconf. So, i tried installing cygwin, And that is difficult for me. I never tried to installed cygwin.

Anyway, i installed successfully. But the problem has not solved. There is still has the errors with npm install .


The problem appeared when installing gifsicle, The Hexo-all-minifier used it too. So, the best way is go to the gifsicle issues. As predicted, there is someone got the same errors.

Be unexpected, It’s not a problem with windows or autoconf. That is network problem🌚.

‼ getaddrinfo ENOENT
‼ gifsicle pre-build test failed

As in above two lines, the problem is can’t connect with

Best way

Write domain with ip into the hosts. That is best way to connect with github and other domains.

Then, trynpm cache clean -fandipconfig/flushdns.

As long as can ping with github domains, the problem will be solved.

The Command failed just write some ips for hosts, then npm install will be worked.


批注 2020-08-04 135700

enjoy it.