質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Spring

Spring Framework は、Javaプラットフォーム向けのオープンソースアプリケーションフレームワークです。 Java Platform上に、 Web ベースのアプリケーションを設計するための拡張機能が数多く用意されています。

Q&A

0回答

2901閲覧

rails プロジェクト作成時に bundler : failed to load command: spring というエラーが出る

madotuki

総合スコア8

Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Spring

Spring Framework は、Javaプラットフォーム向けのオープンソースアプリケーションフレームワークです。 Java Platform上に、 Web ベースのアプリケーションを設計するための拡張機能が数多く用意されています。

0グッド

1クリップ

投稿2018/04/19 08:31

発生している問題・エラーメッセージ

railsを https://www.youtube.com/watch?v=3Lp5XP8pWkU を参考にインストールしていましたが,rails new test_sppした時に

bundler: failed to load command: spring (/Users/mdttk/.rvm/gems/ruby-2.4.1/bin/spring) Gem::Exception: can't find executable spring for gem spring. spring is not currently included in the bundle, perhaps you meant to add it to your Gemfile? /Users/mdttk/.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/bundler/rubygems_integration.rb:458:in `block in replace_bin_path' /Users/mdttk/.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/bundler/rubygems_integration.rb:478:in `block in replace_bin_path' /Users/mdttk/.rvm/gems/ruby-2.4.1/bin/spring:23:in `<top (required)>'

というエラーが発生しました.

該当のソースコード

$ rails new test_app create create README.md create Rakefile create .ruby-version create config.ru create .gitignore create Gemfile run git init from "." Initialized empty Git repository in /Users/mdttk/test_app/.git/ create package.json create app create app/assets/config/manifest.js create app/assets/javascripts/application.js create app/assets/javascripts/cable.js create app/assets/stylesheets/application.css create app/channels/application_cable/channel.rb create app/channels/application_cable/connection.rb create app/controllers/application_controller.rb create app/helpers/application_helper.rb create app/jobs/application_job.rb create app/mailers/application_mailer.rb create app/models/application_record.rb create app/views/layouts/application.html.erb create app/views/layouts/mailer.html.erb create app/views/layouts/mailer.text.erb create app/assets/images/.keep create app/assets/javascripts/channels create app/assets/javascripts/channels/.keep create app/controllers/concerns/.keep create app/models/concerns/.keep create bin create bin/bundle create bin/rails create bin/rake create bin/setup create bin/update create bin/yarn create config create config/routes.rb create config/application.rb create config/environment.rb create config/cable.yml create config/puma.rb create config/spring.rb create config/storage.yml create config/environments create config/environments/development.rb create config/environments/production.rb create config/initializers/wrap_parameters.rb create config/locales create config/locales/en.yml create config/master.key append .gitignore create config/boot.rb create config/database.yml create db create db/seeds.rb create lib create lib/tasks create lib/tasks/.keep create lib/assets create lib/assets/.keep create log create log/.keep create public create public/404.html create public/422.html create public/500.html create public/apple-touch-icon-precomposed.png create public/apple-touch-icon.png create public/favicon.ico create public/robots.txt create tmp create tmp/.keep create tmp/cache create tmp/cache/assets create vendor create vendor/.keep create test/fixtures create test/fixtures/.keep create test/fixtures/files create test/fixtures/files/.keep create test/controllers create test/controllers/.keep create test/mailers create test/mailers/.keep create test/models create test/models/.keep create test/helpers create test/helpers/.keep create test/integration create test/integration/.keep create test/test_helper.rb create test/system create test/system/.keep create test/application_system_test_case.rb create storage create storage/.keep create tmp/storage create tmp/storage/.keep remove config/initializers/cors.rb remove config/initializers/new_framework_defaults_5_2.rb run bundle install The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`. Fetching gem metadata from https://rubygems.org/......... Fetching gem metadata from https://rubygems.org/. Resolving dependencies... Fetching rake 12.3.1 Installing rake 12.3.1 Fetching concurrent-ruby 1.0.5 Installing concurrent-ruby 1.0.5 Fetching i18n 1.0.1 Installing i18n 1.0.1 Fetching minitest 5.11.3 Installing minitest 5.11.3 Fetching thread_safe 0.3.6 Installing thread_safe 0.3.6 Fetching tzinfo 1.2.5 Installing tzinfo 1.2.5 Fetching activesupport 5.2.0 Installing activesupport 5.2.0 Fetching builder 3.2.3 Installing builder 3.2.3 Fetching erubi 1.7.1 Installing erubi 1.7.1 Fetching mini_portile2 2.3.0 Installing mini_portile2 2.3.0 Fetching nokogiri 1.8.2 Installing nokogiri 1.8.2 with native extensions Fetching rails-dom-testing 2.0.3 Installing rails-dom-testing 2.0.3 Fetching crass 1.0.4 Installing crass 1.0.4 Fetching loofah 2.2.2 Installing loofah 2.2.2 Fetching rails-html-sanitizer 1.0.4 Installing rails-html-sanitizer 1.0.4 Fetching actionview 5.2.0 Installing actionview 5.2.0 Fetching rack 2.0.4 Installing rack 2.0.4 Fetching rack-test 1.0.0 Installing rack-test 1.0.0 Fetching actionpack 5.2.0 Installing actionpack 5.2.0 Fetching nio4r 2.3.0 Installing nio4r 2.3.0 with native extensions Fetching websocket-extensions 0.1.3 Installing websocket-extensions 0.1.3 Fetching websocket-driver 0.7.0 Installing websocket-driver 0.7.0 with native extensions Fetching actioncable 5.2.0 Installing actioncable 5.2.0 Fetching globalid 0.4.1 Installing globalid 0.4.1 Fetching activejob 5.2.0 Installing activejob 5.2.0 Fetching mini_mime 1.0.0 Installing mini_mime 1.0.0 Fetching mail 2.7.0 Installing mail 2.7.0 Fetching actionmailer 5.2.0 Installing actionmailer 5.2.0 Fetching activemodel 5.2.0 Installing activemodel 5.2.0 Fetching arel 9.0.0 Installing arel 9.0.0 Fetching activerecord 5.2.0 Installing activerecord 5.2.0 Fetching mimemagic 0.3.2 Installing mimemagic 0.3.2 Fetching marcel 0.3.2 Installing marcel 0.3.2 Fetching activestorage 5.2.0 Installing activestorage 5.2.0 Fetching msgpack 1.2.4 Installing msgpack 1.2.4 with native extensions Fetching bootsnap 1.3.0 Installing bootsnap 1.3.0 with native extensions Using bundler 1.16.1 Fetching coffee-script-source 1.12.2 Installing coffee-script-source 1.12.2 Fetching execjs 2.7.0 Installing execjs 2.7.0 Fetching coffee-script 2.4.1 Installing coffee-script 2.4.1 Fetching method_source 0.9.0 Installing method_source 0.9.0 Fetching thor 0.20.0 Installing thor 0.20.0 Fetching railties 5.2.0 Installing railties 5.2.0 Fetching coffee-rails 4.2.2 Installing coffee-rails 4.2.2 Fetching ffi 1.9.23 Installing ffi 1.9.23 with native extensions Fetching multi_json 1.13.1 Installing multi_json 1.13.1 Fetching jbuilder 2.7.0 Installing jbuilder 2.7.0 Fetching puma 3.11.4 Installing puma 3.11.4 with native extensions Fetching sprockets 3.7.1 Installing sprockets 3.7.1 Fetching sprockets-rails 3.2.1 Installing sprockets-rails 3.2.1 Fetching rails 5.2.0 Installing rails 5.2.0 Fetching rb-fsevent 0.10.3 Installing rb-fsevent 0.10.3 Fetching rb-inotify 0.9.10 Installing rb-inotify 0.9.10 Fetching sass-listen 4.0.0 Installing sass-listen 4.0.0 Fetching sass 3.5.6 Installing sass 3.5.6 Fetching tilt 2.0.8 Installing tilt 2.0.8 Fetching sass-rails 5.0.7 Installing sass-rails 5.0.7 Fetching sqlite3 1.3.13 Installing sqlite3 1.3.13 with native extensions Fetching turbolinks-source 5.1.0 Installing turbolinks-source 5.1.0 Fetching turbolinks 5.1.1 Installing turbolinks 5.1.1 Fetching uglifier 4.1.9 Installing uglifier 4.1.9 Bundle complete! 18 Gemfile dependencies, 61 gems now installed. Gems in the groups development and test were not installed. Bundled gems are installed into `./vendor/bundle` run bundle exec spring binstub --all bundler: failed to load command: spring (/Users/mdttk/.rvm/gems/ruby-2.4.1/bin/spring) Gem::Exception: can't find executable spring for gem spring. spring is not currently included in the bundle, perhaps you meant to add it to your Gemfile? /Users/mdttk/.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/bundler/rubygems_integration.rb:458:in `block in replace_bin_path' /Users/mdttk/.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/bundler/rubygems_integration.rb:478:in `block in replace_bin_path' /Users/mdttk/.rvm/gems/ruby-2.4.1/bin/spring:23:in `<top (required)>'

試したこと

railsをアンインストールしもう一度入れ直したり, https://qiita.com/m-shin/items/759c2d62907a2a36e340 を参考にしてみましたが,変化はありませんでした.

補足情報(FW/ツールのバージョンなど)

mdttk$ spring -v Spring version 2.0.2 mdttk$ rails -v Rails 5.2.0 mdttk$ ruby -v ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin17] mdttk$ bundler -v Bundler version 1.16.1

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問