ENOTFOUND: Couldn't resolve host 错误表示系统无法将你请求的域名或主机名转换为对应的 IP 地址。这是网络请求的第一个关键步骤——域名解析失败了。/,或者多了一个/,导致 DNS 找不到对应的记录。http:// 或 https://。hosts 文件(用于本地覆盖 DNS 解析)中包含了错误的或过时的域名解析条目。ENOTFOUND: Couldn't resolve host 错误:/,或者多了一个/。api.example.com 而不是 api.exampel.com。http:// 或 https://)。ipconfig /flushdns 并回车。sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder 并回车。hosts 文件C:\Windows\System32\drivers\etc\hosts/etc/hosts#)任何与你请求的域名相关的解析记录,然后保存文件。