[英]Cannot install sprockets gem - ruby on rails
I accidently uninstalled the sprockets gem in terminal using this command 我不小心使用此命令在终端中卸载了链轮宝石
'gem uninstall sprockets 2.12.3'
'宝石卸载链轮2.12.3'
when I try to install it again with this command: 当我尝试使用此命令再次安装它时:
'gem install sprockets 2.12.3'
'宝石安装链轮2.12.3'
I get this message: 我收到此消息:
'ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) Errno::ETIMEDOUT: Operation timed out - connect(2) for "au-m.rubygems.org" port 443 ( https://api.rubygems.org/quick/Marshal.4.8/sprockets-2.12.3.gemspec.rz )'
'错误:执行gem时...(Gem :: RemoteFetcher :: FetchError)Errno :: ETIMEDOUT:操作超时-“ au-m.rubygems.org”端口443( https:// api。 rubygems.org/quick/Marshal.4.8/sprockets-2.12.3.gemspec.rz )'
I was wondering if anyone knows what I need to do to rectify this problem? 我想知道是否有人知道我需要做些什么来纠正此问题?
Many thanks. 非常感谢。
au-m.rubygems.org
might be temporarily down. au-m.rubygems.org
可能暂时关闭。
try it. 试试吧。
$ gem source --remove https://rubygems.org/
$ gem source --add https://tokyo-m.rubygems.org/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.