升级Rubygems时无法打开TCP连接

uqdfh47h  于 2023-03-08  发布在  Ruby
关注(0)|答案(1)|浏览(413)

我在MacOS Ventura 13.0上,我正在尝试upgrade Rubygems

$ gem update --system
ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
    Errno::ECONNREFUSED: Failed to open TCP connection to localhost:8808 (Connection refused - connect(2) for "localhost" port 8808) (http://localhost:8808/specs.4.8.gz)

如何解决错误?

x8diyxa7

x8diyxa71#

已解决:在终端中,cd您的项目文件夹,并运行命令gem sources -r SOURCE_URI,其中SOURCE_URI是要删除的源。

相关问题