我想我搞砸了,现在我被这个错误消息困住了:( 我怎么离开这里?
pedal@RN-145-97-138-125:~$ rails -v
/Users/pedal/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/dependency.rb:315:in
`to_specs': Could not find 'actionpack' (= 4.2.1) among 62 total
gem(s) (Gem::LoadError) Checked in
'GEM_PATH=/Users/pedal/.rvm/gems/ruby-2.2.1:/Users/pedal/.rvm/gems/ruby-2.2.1@global',
execute `gem env` for more information from
/Users/pedal/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/specification.rb:1311:in
`block in activate_dependencies' from
/Users/pedal/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/specification.rb:1300:in
`each' from
/Users/pedal/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/specification.rb:1300:in
`activate_dependencies' from
/Users/pedal/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/specification.rb:1282:in
`activate' from
/Users/pedal/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_gem.rb:67:in
`block in gem' from
/Users/pedal/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_gem.rb:66:in
`synchronize' from
/Users/pedal/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_gem.rb:66:in
`gem' from /Users/pedal/.rvm/rubies/ruby-2.2.1/bin/rails:22:in
`<main>' from
/Users/pedal/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in
`eval' from
/Users/pedal/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in
`<main>'§§§§
答案 0 :(得分:2)
尝试
gem pristine --all
然后
bundle install
在项目文件夹的终端
答案 1 :(得分:0)
看起来你错过了actionpack
宝石。尝试(重新)使用gem install actionpack
安装它。