一切都正常,然后突然我无法再运行“ rails s”或“ rails c”。
我不断收到以下错误消息:
The git source https://github.com/plataformatec/devise.git is not yet checked out. Please run `bundle install` before trying to start your application
我已经在网上搜索过,他们说要运行:
spring binstubs --all
,但这不起作用,并且会给我与上述相同的错误消息。
请帮助。我做的最后一件事是将代码推送到heroku和github。 Rails服务器,控制台工作正常,然后发生这种情况。
我尝试运行捆绑安装,它输出此错误
... Resolving dependencies............... Bundler could not find compatible versions for gem "railties": In snapshot (Gemfile.lock): railties (= 5.0.4) In Gemfile: inherited_resources was resolved to 1.11.0, which depends on railties (< 6.1, >= 5.2) rails (~> 5.0.0) was resolved to 5.0.4, which depends on railties (= 5.0.4) Running `bundle update` will rebuild your snapshot from scratch, using only the gems in your Gemfile, which may resolve the conflict.
请注意,我没有对任何内容进行任何更改,这就是为什么它如此怪异的原因。它早5分钟就开始工作,然后突然发生了。我已经重新启动了Mac,但问题仍然存在
一切正常,然后突然我无法再运行“ rails s”或“ rails c”。我不断收到以下错误消息:git源https://github.com/plataformatec/devise ....
从堆栈跟踪中,我看到问题出在inherited_resources gem。如果查看当前使用的此宝石v1.11.0的gemspec,则可以看到它明确指出了> = 5.2的栏目。但是,您似乎正在运行5.0.0,这与5.0.4的Rails绑定在一起。
我感谢社区的帮助。