简体   繁体   中英

Cannot install sprockets gem - ruby on rails

I accidently uninstalled the sprockets gem in terminal using this command

'gem uninstall sprockets 2.12.3'

when I try to install it again with this command:

'gem install sprockets 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 )'

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.

try it.

$ gem source --remove https://rubygems.org/
$ gem source --add https://tokyo-m.rubygems.org/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM