Trying to execute the command "pod init" and when I do terminal outputs
"Could not find 'json' (>= 1.5.1) among 44 total gem(s) (Gem::MissingSpecError)
Checked in 'GEM_PATH=/Users/myname/.rvm/gems/ruby-3.0.0:/Users/myname/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0:/usr/local/Cellar/cocoapods/1.11.3_1/libexec' , execute gem env
for more information
However, when I input the command "gem list" it shows JSON. I don't understand why this is happening and attempted to follow the instructions laid out here: Why won't bundler install JSON gem?
but, each time I tried to execute the command: gem install bundler -v '= 2.4.4' terminal outputted this message:
Error loading RubyGems plugin "/Users/myname/.rvm/gems/ruby-3.0.0/plugins/gem-wrappers_plugin.rb": Operation not permitted - getcwd (Errno::EPERM) ERROR: While executing gem ... (Errno::EPERM) Operation not permitted -
This was the same output I received for all of the instructions on the above StackOverflow page.
I have already tried the following commands:
gem install bundler -v '= 2.4.4' and gem install json -v '2.6.3'
and received this error message both times:
Error loading RubyGems plugin "/Users/myname/.rvm/gems/ruby-3.0.0/plugins/gem-wrappers_plugin.rb": Operation not permitted - getcwd (Errno::EPERM) ERROR: While executing gem ... (Errno::EPERM) Operation not permitted -
How can I fix this error? Is there a reason why it lists JSON as already being installed and then says it cannot find it?