I am a newbie and using Ruby on Rails, I am stucking with this problem. I am trying to make a new project in Ruby on Rails, and when I used this "rails new -X", it gave me this message "an error occurred while installing bootsnap (1.4.4) and Bundler cannot continue. Make sure that 'gem install bootsnap -v '1.4.4' --source 'https:rubygems.org/'' succeeds before bundling"
Then I tried the command 'gem install bootsnap -v '1.4.4' --source 'https:rubygems.org/'' , it gave me this message : " ERROR: While executing gem ... (NoMethodError) undefined method 'downcase' for nil:NilClass"
I tried to find something from this website " https://rubygems.org/gems/bootsnap/versions/1.4.4-java " and installed it, but nothing changed.
My gem version is 2.5.2
I know my question is just a little bit stupid but could you please help me? Thank you very much.
You're getting this error " ERROR: While executing gem ... (NoMethodError) undefined method 'downcase' for nil:NilClass"
because, you mentioned wrong source path.
Replace this
gem install bootsnap -v '1.4.4' --source https:rubygems.org/
with this:
gem install bootsnap -v '1.4.4' --source https://rubygems.org/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.