Fetching gem metadata from https://rubygems.org/.........
Resolving dependencies...
Could not find gem 'http_parser.rb (= 0.8.0)' with platform 'x86_64-darwin-21' in rubygems repository https://rubygems.org/ or installed locally.
The source contains the following gems matching 'http_parser.rb (= 0.8.0)':
* http_parser.rb-0.8.0
I am unsure of why this is happening, even though I have tried installing the exact version it asks for.
Can you post the full output of the console when you run the command?
If you are on a mac it seems to be a common issue that you end up with more than one installation of Ruby and you may be installing http parser in one ruby instance but bundler is using another. You can sometimes see this in the console logs if you look at the path for each thing - if you see 2 different paths then that usually means there is more than one ruby instance installed. Solution is usually to uninstall and reinstall ruby.
Which gave me this, I don’t know if it is useful or not:
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
source /usr/local/opt/chruby/share/chruby/chruby.sh
source /usr/local/opt/chruby/share/chruby/auto.sh
chruby ruby-3.1.2 # run chruby to see actual version
chruby ruby-3.1.2
chruby ruby-3.1.2
chruby ruby-3.1.2
chruby ruby-3.1.2
source /usr/local/opt/chruby/share/chruby/chruby.sh
source /usr/local/opt/chruby/share/chruby/auto.sh
chruby ruby-3.1.2
chruby ruby-3.1.2
I believe I am switching to the right version by entering
chruby 3.1.2
Just to be sure, which command would I need to use to uninstall all the versions if I followed Jekyll’s installation process for macOS? I don’t know if it is through HomeBrew.
I’m not a mac user so can’t really help on how to do it - but I would uninstall ruby and re-install it and see what happens. My guess is you are doing things with multiple versions of ruby somehow.