‼ gifsicle pre-build test failed

在window10上运行vue项目报错

npm install


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:

ping一下这个网址,raw.githubusercontent.com

PS C:\Users\Administrator> ping raw.githubusercontent.com
Ping 请求找不到主机 raw.githubusercontent.com。请检查该名称,然后重试。

修改hosts文件,增加以下配置

52.74.223.119     github.com
192.30.253.119    gist.github.com
54.169.195.247    api.github.com
185.199.111.153   assets-cdn.github.com
151.101.76.133    raw.githubusercontent.com
151.101.76.133    gist.githubusercontent.com
151.101.76.133    cloud.githubusercontent.com
151.101.76.133    camo.githubusercontent.com
151.101.76.133    avatars0.githubusercontent.com
151.101.76.133    avatars1.githubusercontent.com
151.101.76.133    avatars2.githubusercontent.com
151.101.76.133    avatars3.githubusercontent.com
151.101.76.133    avatars4.githubusercontent.com
151.101.76.133    avatars5.githubusercontent.com
151.101.76.133    avatars6.githubusercontent.com
151.101.76.133    avatars7.githubusercontent.com
151.101.76.133    avatars8.githubusercontent.com

再运行

npm cache clean -f

 测试

PS C:\Users\Administrator> ping raw.githubusercontent.com

正在 Ping raw.githubusercontent.com [151.101.76.133] 具有 32 字节的数据:
来自 151.101.76.133 的回复: 字节=32 时间=197ms TTL=51
来自 151.101.76.133 的回复: 字节=32 时间=196ms TTL=51
来自 151.101.76.133 的回复: 字节=32 时间=201ms TTL=51

再次运行 npm install,一切正常!

  • 8
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 4
    评论
当你遇到 "certificate has expired" 的错误提示时,意味着你的证书已过期。证书是用于验证网站身份和加密通信的一种安全机制。过期的证书会导致浏览器或其他应用程序无法信任该网站,从而阻止你访问或与该网站进行安全通信。 要解决这个问题,你可以尝试以下几个步骤: 1. 检查系统时间和日期:确保你的设备上的时间和日期设置正确。过期的证书通常是由于设备时间不准确导致的。 2. 清除浏览器缓存:如果你在浏览器中遇到这个问题,尝试清除浏览器缓存和Cookie。有时候旧的证书缓存可能导致问题。 3. 更新操作系统和应用程序:确保你的操作系统和相关应用程序都是最新版本。更新可能包含修复过期证书的补丁。 4. 检查证书颁发机构(CA):如果你是网站管理员或开发人员,需要检查你的证书是否由可信任的证书颁发机构(CA)签发。如果证书由不受信任的CA签发,可能会导致浏览器或其他应用程序拒绝信任该证书。 至于 "gifsicle pre-build test failed" 的错误提示,这通常是在构建或安装gifsicle软件包时出现的问题。gifsicle是一个用于处理GIF图像的工具。 要解决这个问题,你可以尝试以下几个步骤: 1. 检查依赖项:确保你的系统上已安装了gifsicle所需的所有依赖项。这可能包括其他库或软件包。你可以查看gifsicle的文档或官方网站获取详细的依赖项信息。 2. 更新软件包:确保你正在使用最新版本的gifsicle和相关软件包。更新可能包含修复已知问题或错误的修补程序。 3. 检查编译环境:如果你是从源代码编译gifsicle,确保你的编译环境设置正确,并且你具备构建所需的所有工具和库。 如果以上步骤都没有解决问题,你可以尝试在相关的开发者社区或论坛上寻求帮助,以获取更具体的指导和支持。
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值