Open the terminal first
Enter the gem sources -l
command in the terminal and check the gem source as follows:
Enter the gem sources --remove https://rubygems.org/
command in the terminal and delete the original gem source as follows:
Enter the gem sources -a http://mirrors.aliyun.com/rubygems/
command in the terminal to change the gem source to Aliyun, as follows: The
replacement is successful.