前提・実現したいこと
$rails g controller home topのコマンドを実行したのですがファイルが作成されず以下の様なエラーメッセージがでて困っています。どうすればg系統のコマンドができる様になるのか教えていただきたいです。
発生している問題・エラーメッセージ
Ignoring bindex-0.5.0 because its extensions are not built. Try: gem pristine bindex --version 0.5.0 Ignoring bootsnap-1.3.0 because its extensions are not built. Try: gem pristine bootsnap --version 1.3.0 Ignoring byebug-10.0.2 because its extensions are not built. Try: gem pristine byebug --version 10.0.2 /Library/Ruby/Gems/2.3.0/gems/bundler-1.16.2/lib/bundler/spec_set.rb:91:in `block in materialize': Could not find nokogiri-1.8.3 in any of the sources (Bundler::GemNotFound) from /Library/Ruby/Gems/2.3.0/gems/bundler-1.16.2/lib/bundler/spec_set.rb:85:in `map!' from /Library/Ruby/Gems/2.3.0/gems/bundler-1.16.2/lib/bundler/spec_set.rb:85:in `materialize' from /Library/Ruby/Gems/2.3.0/gems/bundler-1.16.2/lib/bundler/definition.rb:171:in `specs' from /Library/Ruby/Gems/2.3.0/gems/bundler-1.16.2/lib/bundler/definition.rb:238:in `specs_for' from /Library/Ruby/Gems/2.3.0/gems/bundler-1.16.2/lib/bundler/definition.rb:227:in `requested_specs' from /Library/Ruby/Gems/2.3.0/gems/bundler-1.16.2/lib/bundler/runtime.rb:108:in `block in definition_method' from /Library/Ruby/Gems/2.3.0/gems/bundler-1.16.2/lib/bundler/runtime.rb:20:in `setup' from /Library/Ruby/Gems/2.3.0/gems/bundler-1.16.2/lib/bundler.rb:107:in `setup' from /Library/Ruby/Gems/2.3.0/gems/bundler-1.16.2/lib/bundler/setup.rb:20:in `<top (required)>' from /Users/hiro/.rbenv/versions/2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /Users/hiro/.rbenv/versions/2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /Library/Ruby/Gems/2.3.0/gems/spring-2.0.2/lib/spring/commands.rb:33:in `<module:Spring>' from /Library/Ruby/Gems/2.3.0/gems/spring-2.0.2/lib/spring/commands.rb:4:in `<top (required)>' from /Users/hiro/.rbenv/versions/2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /Users/hiro/.rbenv/versions/2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /Library/Ruby/Gems/2.3.0/gems/spring-2.0.2/lib/spring/server.rb:9:in `<top (required)>' from /Users/hiro/.rbenv/versions/2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /Users/hiro/.rbenv/versions/2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /Library/Ruby/Gems/2.3.0/gems/spring-2.0.2/lib/spring/client/server.rb:9:in `call' from /Library/Ruby/Gems/2.3.0/gems/spring-2.0.2/lib/spring/client/command.rb:7:in `call' from /Library/Ruby/Gems/2.3.0/gems/spring-2.0.2/lib/spring/client.rb:30:in `run' from /Library/Ruby/Gems/2.3.0/gems/spring-2.0.2/bin/spring:49:in `<main>'
補足情報(FW/ツールのバージョンなど)
Rails 5.2.0
ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-darwin17]
初心者で何を書けば良いのかわからないので他に必要な情報等ありましたら教えてください。。。。
回答3件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。