用户登录
用户注册

分享至

Cannot set HTTP gem source: “source https://rubygems.org not present in cache”

  • 作者: 用户64654858
  • 来源: 51数据库
  • 2021-07-08

my ruby version in windows 10:

> ruby -v
ruby 2.3.1p112 (2016-04-26 revision 54768) [i386-mingw32]

when i list gem system sources i see both, https and http sources:

> gem sources --list
*** current sources ***

http://www.51sjk.com/Upload/Articles/1/0/248/248674_20210624000659630.jpg
http://www.51sjk.com/Upload/Articles/1/0/248/248674_20210624000659646.org

now i would like to leave only the http source:

> gem sources --remove http://www.51sjk.com/Upload/Articles/1/0/248/248674_20210624000659693.org
source http://www.51sjk.com/Upload/Articles/1/0/248/248674_20210624000659693.org not present in cache

> gem sources --add http://www.51sjk.com/Upload/Articles/1/0/248/248674_20210624000659646.org
http://www.51sjk.com/Upload/Articles/1/0/248/248674_20210624000659693.org is recommended for security over http://www.51sjk.com/Upload/Articles/1/0/248/248674_20210624000659646.org

do you want to add this insecure source? [yn]  y
source http://www.51sjk.com/Upload/Articles/1/0/248/248674_20210624000659646.org already present in the cache

please help me to understand how to get the things done. they must be done.

软件
前端设计
程序设计
Java相关