yarn/yarn install 报错 gifsicle pre-build test failed
从github上clone别人的代码,install时报错如下:
gifsicle pre-build test failed
compiling from source
Error: Command failed: C:\Windows\system32\cmd.exe /s /c "autoreconf -ivf"
'autoreconf' �����ڲ����ⲿ���Ҳ���ǿ����еij���
�����������
原因是imagemin 依赖安装失败 解决办法一是搭梯子
解决方案二:
由于 imagemin 在国内安装困难,提供以下几个解决方案:
使用 yarn 在 package.json 内配置(推荐,前提是必须使用 yarn)
"resolutions": {"bin-wrapper": "npm:bin-wrapper-china"}
使用 npm,在电脑 host 文件加上如下配置即可199.232.4.133 raw.githubusercontent.com
本作品采用 知识共享署名-相同方式共享 4.0 国际许可协议 进行许可。