美文网首页
brew install nginx报错Operation to

brew install nginx报错Operation to

作者: 天問_专注于大前端技术 | 来源:发表于2023-07-13 00:10 被阅读0次

    使用 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
    

    参考文档


    欢迎访问:天问博客

    相关文章

      网友评论

          本文标题:brew install nginx报错Operation to

          本文链接:https://www.haomeiwen.com/subject/lqxmudtx.html