OSX Homebrew error: uninitialized constant MACOS

后端 未结 5 1496
傲寒
傲寒 2020-12-19 02:26

I\'ve searched around a bit and can\'t seem to find any record of anyone else with this problem.

Whenever I try to run

$ brew update
5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-19 02:57

    I had a similar issue, when I Killed an install mid-way with Ctrl-D. Post that whenever I tried installing anything it gave the following error

    uninitialized constant Homebrew::CLI::Parser::ARGV_WITHOUT_MONKEY_PATCHING
    

    As a fix, I went to the directory I had where homebrew was installed, and reset the HEAD.

    cd /usr/local/Homebrew
    git status 
    git checkout .
    

    And then it started working magically.

提交回复
热议问题