以前はRails4を使用していましたが、すべてをRails5に更新しました。それ以来、私は宝石を手に入れています:新しいレールプロジェクトを作るたびにloaderrorGem:新しいRailsプロジェクトが作成されたときのloaderror
I rails new sampletest
と入力してください。
プロジェクトが自動的に宝石をインストールした後、私はそれがあるとき、私はgemfileに「春」を置くべきと言っている理由
Bundle complete! 15 Gemfile dependencies, 54 gems now installed.
Gems in the groups development and test were not installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
run bundle exec spring binstub --all
/Users/(folder)/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.5/lib/bundler/rubygems_integration.rb:322:in `block in replace_gem': spring is not part of the bundle. Add it to Gemfile. (Gem::LoadError)
from /Users/(folder)/.rvm/gems/ruby-2.3.0/bin/spring:22:in `<main>'
from /Users/(folder)/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `eval'
from /Users/(folder)/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `<main>'
は、私はよく分からない、というエラーを取得します。
グループの開発とテストの宝石はインストールされていないと言われています。開発グループには通常「春」が追加されています。 'bundle install'を実行してインストールしてください。 – Aleksey
' bundle install'を再実行しても、 'Group development and testのGemsはインストールされていません。なぜでしょうか? – JoHksi
'bundle config'を実行して出力を投稿できますか? – Aleksey