How to fix a bundle install “nio4r error” on Rails 5.0.0

前端 未结 5 1470
谎友^
谎友^ 2021-01-02 04:58

The exact error is:

An error occurred while installing nio4r (1.2.1), and bundler cannot continue. Make sure that \'gem install nio4r -v \'1.2.1\'\' succeeds         


        
5条回答
  •  感情败类
    2021-01-02 05:22

    If anyone is looking for this, I had updated my computer and the command line tools were updated. I needed to agree to the XCode license.

    Error: You have not agreed to the Xcode license. Please resolve this
     by running:   sudo xcodebuild -license accept
    

    This fixed it for me.

提交回复
热议问题