Mac replace ruby gem source

Open the terminal first

Enter the gem sources -lcommand in the terminal and check the gem source as follows: Insert picture description here
Enter the gem sources --remove https://rubygems.org/command in the terminal and delete the original gem source as follows:
Insert picture description here

Enter the gem sources -a http://mirrors.aliyun.com/rubygems/command in the terminal to change the gem source to Aliyun, as follows: The Insert picture description here
replacement is successful.

Guess you like

Origin blog.csdn.net/weixin_38106322/article/details/108542987