ruby-on-rails – lockfile_parser.r:48:在`parse_source’中:
发布时间:2020-12-17 04:25:49 所属栏目:百科 来源:网络整理
导读:我第一次一直在使用 RubyOnRails3和 Git.一切都顺利进行,直到任何与轨道相关的命令行参数突然停止工作.不幸的是,我不知道是什么导致了这个或如何修复它. 这是命令行的输出 C:railstestrailsprojectrailsC:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.0
我第一次一直在使用
RubyOnRails3和
Git.一切都顺利进行,直到任何与轨道相关的命令行参数突然停止工作.不幸的是,我不知道是什么导致了这个或如何修复它.
这是命令行的输出 C:railstestrailsproject>rails C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.0/lib/bundler/lockfile_parser.rb :48:in `parse_source': undefined method `[]' for nil:NilClass (NoMethodError) from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.0/lib/bundler/lockf ile_parser.rb:20:in `block in initialize' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.0/lib/bundler/lockf ile_parser.rb:14:in `each' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.0/lib/bundler/lockf ile_parser.rb:14:in `initialize' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.0/lib/bundler/defin ition.rb:43:in `new' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.0/lib/bundler/defin ition.rb:43:in `initialize' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.0/lib/bundler/dsl.r b:122:in `new' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.0/lib/bundler/dsl.r b:122:in `to_definition' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.0/lib/bundler/defin ition.rb:20:in `build' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.0/lib/bundler.rb:12 8:in `definition' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.0/lib/bundler.rb:11 6:in `load' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.0/lib/bundler.rb:10 0:in `setup' from C:/railstest/railsproject/config/boot.rb:8:in `<top (required)>' from <internal:lib/rubygems/custom_require>:29:in `require' from <internal:lib/rubygems/custom_require>:29:in `require' from script/rails:5:in `<main>' 我不确定提供什么其他信息 解决方法
好像Gemfile.lock文件中存在一些问题.您可以尝试删除此文件并再次运行bundle install以查看它是否可以正确地重新创建它.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |