Incompatible library version: nokogiri.bundle requires version 11.0.0 or later, but libxml2.2.dylib

前端 未结 8 1914
醉话见心
醉话见心 2020-12-01 14:31

I\'m getting this error when trying to run rspec in Hartl\'s tutorial. I googled the error, but it\'s never for the specific version and the fixes don\'t actually fix my pro

8条回答
  •  心在旅途
    2020-12-01 14:54

    Try the following inside your project directory.

    gem uninstall nokogiri
    

    If there are more than one versions installed, a prompt will appear asking which version to remove. use the last option that reads "All versions".

    Next, run bundle install inside your project directory. once it finishes installing the needed gems you should be good to go.

    In my case, I hit the last option "All versions" as it doesn't hurt my project but it is possible that you might need the other versions based on different projects.

提交回复
热议问题