当前位置: 首页 > Web前端 > vue.js

getaddrinfoENOENTraw.githubusercontent.com

时间:2023-03-31 18:45:52 vue.js

错误记录:Error:Commandfailed:C:windowssystem32cmd.exe/s/c"./configure--disable-shared错误关键字:cwebp-bin,autoreconf-ivf,pngquant,libpng-dev完整错误信息为3条:错误:命令失败:C:windowssystem32cmd.exe/s/c"./configure--disable-shared--prefix="D:Projectvue-admin-beautiful-templatenode_modulescwebp-binvendor"--bindir="D:Projectvue-admin-beautiful-templatenode_modulescwebp-binvendor""错误:命令失败:C:windowssystem32cmd.exe/s/c"autoreconf-ivf"'autoreconf'错误:命令失败:C:windowssystem32cmd.exe/s/c"./configure--with-system-zlib--prefix="D:Projectvue-admin-beautiful-templatenode_modulesoptipng-binvendor"--bindir="D:Projectvue-admin-beautiful-templatenode_modulesoptipng-binvendor""错误:pngquant构建失败,确保libpng-dev安装场景:安装vue-admin-beautiful项目时尝试过cnpmi和npminstall,甚至尝试过科学上网的方法,但是还是报错位置问题。仔细看错误记录,会发现有A提醒,不过是黄色警告,不会引起注意。完整记录我贴出来:>cwebp-bin@5.1.0postinstallD:\Project\vue-admin-beautiful-template\node_modules\cwebp-bin>nodelib/install.js?getaddrinfoENOENTraw.githubusercontent.com?cwebppre-buildtestfailedicompilingfromsource×错误:命令失败:C:\windows\system32\cmd.exe/s/c"./configure--disable-shared--prefix="D:\Project\vue-admin-beautiful-template\node_modules\cwebp-bin\vendor"--bindir="D:\Project\vue-admin-beautiful-template\node_modules\cwebp-bin\vendor""'.'位于D:\Project\vue-admin-beautiful-template\node_modules\bin-build\node_modules\execa\index.js:231:11atrunMicrotasks()atprocessTicksAndRejections(internal/process/task_queues.js:97:5)atasyncPromise.all(index0)>gifsicle@5.1.0postinstallD:\Project\vue-admin-beautiful-template\node_modules\gifsicle>nodelib/install.js?getaddrinfoENOENTraw.githubusercontent.com?gifsicle编译前测试失败来自源×错误:命令d失败:C:\windows\system32\cmd.exe/s/c"autoreconf-ivf"'autoreconf'??е???????????????????仔细查找,发现关键字raw.githubusercontent.com。连接到该地址时出现问题。之前被这个地址骗过,因为这个地址已经被屏蔽很久了,解决办法就是找到问题所在,解决起来就容易多了。直接找到可用的ip地址写入host即可。这里只有一个。如果下面的ip地址不起作用,请查找可用的ip地址。ok199.232.28.133raw.githubusercontent.com觉得有用吗?喜欢就收藏一下,顺便给个赞,您的支持就是对我最大的鼓励!微信搜索公众号【DX前端框架知识库】,查找更多Vue、React、Flutter、Uniapp、Nodejs、Html/Css等前端知识和实战。DX前端,分享前端框架知识库,详见文章:DX前端