LoginSignup
6
4

More than 5 years have passed since last update.

bundle exec rails generate devise:install で 「Could not find generator 'devise:install'.」とエラー

Posted at

Gemfile に以下を加えて、
gem 'devise'
bundle installを実行したところ、以下のようなエラーが出た。

Running via Spring preloader in process 5177
Could not find generator 'devise:install'. Maybe you meant 'assets', 'generator' or 'coffee:assets'
Run rails generate --help for more options.

調べたところ、以下のIssueに行き着いた。
https://github.com/plataformatec/devise/issues/4594

いったんdeviseをアンインストールし、
spring stopでspringを止めたうえで、再度Gemfileにdeviseを追加、bundle installしたところ、generateが成功した。

いっときの不整合かなんかなのかな。。。?

6
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
4