我是rails的新手,在尝试运行bundle命令或启动rails服务器时出现错误(“在此上下文中不允许映射值)。我创建了一些rails应用程序最近开始遇到这个问题。非常感谢任何可能的修复或解决方案!
我在跑什么
我已经尝试过的事情
基于我的其他帖子:
码 我的所有代码都可以在以下网址找到:github.com/owlbytes/AeroSoul
完整错误
/Users/NehaShah/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/psych.rb:205:in `parse': (<unknown>): mapping values are not allowed in this context at line 1 column 26 (Psych::SyntaxError)
from /Users/NehaShah/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/psych.rb:205:in `parse_stream'
from /Users/NehaShah/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/psych.rb:153:in `parse'
from /Users/NehaShah/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/psych.rb:129:in `load'
from /Users/NehaShah/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/rubygems/config_file.rb:318:in `load_file'
from /Users/NehaShah/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/rubygems/config_file.rb:191:in `initialize'
from /Users/NehaShah/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/rubygems.rb:319:in `new'
from /Users/NehaShah/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/rubygems.rb:319:in `configuration'
from /Users/NehaShah/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/rubygems_integration.rb:34:in `configuration'
from /Users/NehaShah/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/rubygems_integration.rb:53:in `sources='
from /Users/NehaShah/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/source/rubygems.rb:250:in `remote_specs'
from /Users/NehaShah/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/source/rubygems.rb:163:in `fetch_specs'
from /Users/NehaShah/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/source/rubygems.rb:67:in `specs'
from /Users/NehaShah/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/definition.rb:192:in `block (2 levels) in index'
from /Users/NehaShah/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/definition.rb:189:in `each'
from /Users/NehaShah/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/definition.rb:189:in `block in index'
from /Users/NehaShah/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/index.rb:9:in `build'
from /Users/NehaShah/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/definition.rb:185:in `index'
from /Users/NehaShah/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/definition.rb:179:in `resolve'
from /Users/NehaShah/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/definition.rb:114:in `specs'
from /Users/NehaShah/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/definition.rb:109:in `resolve_remotely!'
from /Users/NehaShah/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/installer.rb:83:in `run'
from /Users/NehaShah/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/installer.rb:14:in `install'
from /Users/NehaShah/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/cli.rb:320:in `update'
from /Users/NehaShah/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/vendor/thor/task.rb:27:in `run'
from /Users/NehaShah/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/vendor/thor/invocation.rb:120:in `invoke_task'
from /Users/NehaShah/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/vendor/thor.rb:344:in `dispatch'
from /Users/NehaShah/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/vendor/thor/base.rb:434:in `start'
from /Users/NehaShah/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/bin/bundle:20:in `block in <top (required)>'
from /Users/NehaShah/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/friendly_errors.rb:3:in `with_friendly_errors'
from /Users/NehaShah/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/bin/bundle:20:in `<top (required)>'
from /Users/NehaShah/.rbenv/versions/2.0.0-p247/bin/bundle:23:in `load'
from /Users/NehaShah/.rbenv/versions/2.0.0-p247/bin/bundle:23:in `<main>'
更新 我能够切换到ruby ruby 2.0.0p353。当我尝试更新我的捆绑包时,我收到以下错误:
/Users/NehaShah/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/psych.rb:205:in parse': (<unknown>): mapping values are not allowed in this context at line 1 column 26 (Psych::SyntaxError)
from /Users/NehaShah/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/psych.rb:205:in
parse_stream'
来自/Users/NehaShah/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/psych.rb:153:in parse'
from /Users/NehaShah/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/psych.rb:129:in
load'
来自/Users/NehaShah/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/rubygems/config_file.rb:319:in load_file'
from /Users/NehaShah/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/rubygems/config_file.rb:192:in
initialize'
来自/Users/NehaShah/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/rubygems/gem_runner.rb:66:in new'
from /Users/NehaShah/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/rubygems/gem_runner.rb:66:in
do_configuration'
来自/Users/NehaShah/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/rubygems/gem_runner.rb:46:in run'
from /Users/NehaShah/.rbenv/versions/2.0.0-p353/bin/gem:21:in
'