問題点
rails generate react:install
実行時に**Could not find generator 'react:install'**エラーが発生する
$ rails generate react:install
or
$ rails g react:install
Could not find generator 'react:install'. Maybe you meant 'test_unit:job' or 'test_unit:model' or 'generator'
Run `rails generate --help` for more options.
解決方法
springを停止させる
$ spring stop
Spring stopped.
再度、rails generate react:install
を実行する。
$ rails generate react:install
or
$ rails g react:install
Running via Spring preloader in process 39975
create app/assets/javascripts/components
create app/assets/javascripts/components/.gitkeep
insert app/assets/javascripts/application.js
create app/assets/javascripts/components.js
create app/assets/javascripts/server_rendering.js
create config/initializers/react_server_rendering.rb
参考
Rails 4 + react-rails gem: Could not find generator 'react:install' - Stack Overflow