我尝试在计算机上安装Rails 6 rc1。然后,我删除每个Active *或Action *宝石。而且我遇到了这个错误。
我尝试做一个bundle update
,但无济于事。我正在使用rbenv。
有人可以给我指点吗?谢谢!
➜ Desktop git:(master) ✗ rails
Traceback (most recent call last):
8: from /Users/xxxx/.rbenv/versions/2.6.3/bin/rails:23:in `<main>'
7: from /Users/xxxx/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
6: from /Users/xxxx/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems.rb:303:in `synchronize'
5: from /Users/xxxx/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems.rb:304:in `block in activate_bin_path'
4: from /Users/xxxx/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/specification.rb:1420:in `activate'
3: from /Users/xxxx/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/specification.rb:1438:in `activate_dependencies'
2: from /Users/xxxx/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/specification.rb:1438:in `each'
1: from /Users/xxxx/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/specification.rb:1449:in `block in activate_dependencies'
/Users/xxxx/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/dependency.rb:313:in `to_specs': Could not find 'activesupport' (= 6.0.0.rc1) - did find: [activesupport-5.2.3] (Gem::MissingSpecVersionError)
Checked in 'GEM_PATH=/Users/xxxx/.gem/ruby/2.6.0:/Users/xxxx/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0', execute `gem env` for more information
答案 0 :(得分:0)
在测试之后,我意识到railties
是主要的罪魁祸首。
我也错误地以错误的方式卸载了rails。请参考以下内容,找到卸载rails rc
的正确方法。
因此,我只需重新安装滑轨即可解决以上错误。然后,我再次将其卸载。然后我卸载railties
gem install rails --pre
gem uninstall rails -v 6.0.0.rc1
gem uninstall railsties -v 6.0.0.rc1