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


字数:196 阅读时长:1分钟 阅读:85

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

brew install nginx

完整报错信息

1
2
3
4
5
6
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

解决办法

在终端执行:

1
export HOMEBREW_NO_INSTALL_FROM_API=1

参考文档


欢迎访问:天问博客

本文作者: Tiven
发布时间: 2023-04-14
最后更新: 2023-07-17
本文标题: brew install nginx报错Operation too slow. Less than 100 bytes/sec transferred the last 5 seconds
本文链接: https://www.tiven.cn/p/3619c274/
版权声明: 本作品采用 CC BY-NC-SA 4.0 许可协议进行许可。转载请注明出处!
欢迎留言,提问 ^_^
个人邮箱: tw.email@qq.com
notification icon
博客有更新,将会发送通知给您!