経緯と環境
先日mac osをSierraからHigh Sierraにアップデートしたからか、
今まで利用できていたrailsが起動しなくなってしまいました。
開発環境はmac×Virtualbox×Vagrant(Ubuntu)です。
エラー内容と行なった対応とその結果
まず最初にrailsを起動しようとすると以下メッセージが出ました。
$ rails s Rails is not currently installed on this system. To get the latest version, simply type: $ sudo gem install rails You can then rerun your "rails" command.
指示どおり$ sudo gem install railsを行なった結果以下のようになり、特にErrorメッセージとは捉えていなかったのですが、rails sをしても再度上のエラーが表示されてしまい、インストールができないループにハマってしまいました。
$ sudo gem install rails Password: Fetching: concurrent-ruby-1.1.4.gem (100%) Successfully installed concurrent-ruby-1.1.4 Fetching: i18n-1.2.0.gem (100%) HEADS UP! i18n 1.1 changed fallbacks to exclude default locale. But that may break your application. Please check your Rails app for 'config.i18n.fallbacks = true'. If you're using I18n 1.1.x and Rails (< 6.0), this should be 'config.i18n.fallbacks = [I18n.default_locale]'. If not, fallbacks will be broken in your app by I18n 1.1.x. For more info see: https://github.com/svenfuchs/i18n/releases/tag/v1.1.0 Successfully installed i18n-1.2.0 Fetching: thread_safe-0.3.6.gem (100%) Successfully installed thread_safe-0.3.6 Fetching: tzinfo-1.2.5.gem (100%) Successfully installed tzinfo-1.2.5 Fetching: activesupport-5.2.2.gem (100%) Successfully installed activesupport-5.2.2 Fetching: rack-2.0.6.gem (100%) Successfully installed rack-2.0.6 Fetching: rack-test-1.1.0.gem (100%) Successfully installed rack-test-1.1.0 Fetching: mini_portile2-2.3.0.gem (100%) Successfully installed mini_portile2-2.3.0 Fetching: nokogiri-1.8.5.gem ( 0%)ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) too many connection resets (https://api.rubygems.org/gems/nokogiri-1.8.5.gem)
こちら、対応方法がおわかりになる方がいらっしゃれば、ご教示願えないでしょうか。
何卒よろしくお願いいたします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。