I'm trying to install Ruby on Rails on my machine.
Every time I run:
sudo gem install rails
The terminal returns
ERROR: Could not find a valid gem 'rails' (>= 0), here is why:
Unable to download data from https://rubygems.org/ -
Errno::ECONNRESET: Connection reset by peer - SSL_connect
(https://api.rubygems.org/specs.4.8.gz)
How can I solve this?