brew install nginx报错Operation too slow. Less than 100 bytes/sec transferred the last 5

使用 brew 安装 nginx 时报错:brew install nginx报错Operation too slow. Less than 100 bytes/sec transferred the last 5 seconds

brew install nginx

完整报错信息

tiven@bogon% brew install nginx
==> Downloading https://formulae.brew.sh/api/formula.jws.json
brew update-=O=-            #     #    #     #                                  brew update-=O=-          #     #    #     #                                    brew update-=O=-       #   #     #    #                                         curl: (28) Operation too slow. Less than 100 bytes/sec transferred the last 5 seconds

Error: Failure while executing; `/usr/bin/env /opt/homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --user-agent Homebrew/4.0.13\ \(Macintosh\;\ arm64\ Mac\ OS\ X\ 13.2.1\)\ curl/7.86.0 --header Accept-Language:\ en --fail --progress-bar --location --remote-time --output /Users/tiven/Library/Caches/Homebrew/api/formula.jws.json --compressed --speed-limit 100 --speed-time 5 --progress-bar https://formulae.brew.sh/api/formula.jws.json` exited with 28. Here's the output:
curl: (28) Operation too slow. Less than 100 bytes/sec transferred the last 5 seconds

解决办法

在终端执行:

export HOMEBREW_NO_INSTALL_FROM_API=1

参考文档


欢迎访问:天问博客

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容