找不到'铁路'

时间:2015-06-23 14:25:24

标签: ruby-on-rails ruby macos osx-yosemite

在尝试解决一些错误的过程中,我错误地将以下命令从SO粘贴到我的终端中,然后我的开发环境似乎不再起作用了。

sudo chown -R `whoami` ~/.npm

当我尝试运行rails时,我收到以下错误。

/Users/harshamv/.rvm/rubies/ruby-2.1.2/lib/ruby/site_ruby/2.1.0/rubygems/dependency.rb:315:in `to_specs': Could not find 'railties' (>= 0) among 43 total gem(s) (Gem::LoadError)
Checked in 'GEM_PATH=/Users/harshamv/.gem/ruby/2.1.0:/Users/harshamv/.rvm/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0', execute `gem env` for more information
    from /Users/harshamv/.rvm/rubies/ruby-2.1.2/lib/ruby/site_ruby/2.1.0/rubygems/dependency.rb:324:in `to_spec'
    from /Users/harshamv/.rvm/rubies/ruby-2.1.2/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_gem.rb:64:in `gem'
    from /Users/harshamv/.rvm/gems/ruby-2.1.2/bin/rails:22:in `<main>'
    from /Users/harshamv/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `eval'
    from /Users/harshamv/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `<main>'

0 个答案:

没有答案