Whenever I try to deploy my website on Netlify, it always fails on the Initializing
stage. I tried reinstalling Ruby on my computer, reinstalling all my gems, and then pushing the updates to my Github repo, but I still get the error below. How do I update Ruby in my Jekyll project so I can deploy it on Netlify?
3:25:44 PM: Starting to install dependencies3:25:45 PM: Python version set to 3.83:25:45 PM: Attempting Ruby version 2.7.2, read from environment3:25:46 PM: Using Ruby version 2.7.23:25:46 PM: Using Bundler version 2.5.10 from Gemfile.lock3:25:58 PM: ERROR: Error installing bundler:3:25:58 PM: There are no versions of bundler (= 2.5.10) compatible with your Ruby & RubyGems3:25:58 PM: bundler requires Ruby version >= 3.0.0. The current ruby version is 2.7.2.137.3:25:59 PM: Error installing Bundler3:25:59 PM: Failing build: Failed to install dependencies3:25:59 PM: Failed during stage 'Install dependencies': dependency_installation script returned non-zero exit code: 1