Macos Catalina error after update: unable to run colorls

后端 未结 5 1097
无人共我
无人共我 2021-02-14 02:25

Updating to macOS Catalina gives error on opening terminal

ERROR:  Can\'t find Ruby library file or shared library colorls
usage: dirname path
/         


        
5条回答
  •  我寻月下人不归
    2021-02-14 02:55

    This fixed for me:

    $ sudo gem update
    $ sudo gem install colorls
    

    Catalina now ships with Ruby 2.6, instead of 2.3. My guess is that with the upgrade, all custom installed gems became "untracked" by the new Ruby/Gem package system. With that, gem update doesn't take care of updating colorls.

    Make sure you reinstall XCode command line tools, update/upgrade brew, npm and others.

提交回复
热议问题