gem push error – (Gem :: Package :: FormatError) – 没有这样的文件或目录@ rb_sysopen

前端之家收集整理的这篇文章主要介绍了gem push error – (Gem :: Package :: FormatError) – 没有这样的文件或目录@ rb_sysopen前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我试图在可怕的互联网连接上第一次推出ruby宝石.当我第一次尝试推动时,我能够登录然后它在那里挂了大约10分钟没有任何进展的迹象所以我决定只是杀死它并点击ctrl c,这可能是一个糟糕的决定.从会议:
$gem push test_config-0.1.0.gem
Enter your RubyGems.org credentials.
Don't have an account yet? Create one at https://rubygems.org/sign_up
   Email:   myemail@here.com
Password:   

Signed in.
^CERROR:  Interrupted

现在,当我尝试再次推送它(在更好的互联网连接上)时,我得到以下内容

ERROR:  While executing gem ... (Gem::Package::FormatError)
    No such file or directory @ rb_sysopen - test_config-0.1.0.gem
    /Users/Scott/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/package.rb:512:in `rescue in verify'
    /Users/Scott/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/package.rb:490:in `verify'
    /Users/Scott/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/package.rb:474:in `spec'
    /Users/Scott/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/commands/push_command.rb:81:in `send_gem'
    /Users/Scott/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/commands/push_command.rb:47:in `execute'
    /Users/Scott/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/command.rb:305:in `invoke_with_build_args'
    /Users/Scott/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/command_manager.rb:167:in `process_args'
    /Users/Scott/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/command_manager.rb:137:in `run'
    /Users/Scott/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/gem_runner.rb:54:in `run'
    /Users/Scott/.rvm/rubies/ruby-2.1.0/bin/gem:21:in `<main>'

我尝试碰撞版本并推动它,我仍然得到相同的错误.

有谁知道如何解决这个错误?是否与我杀死第一次推动的事实有关?

解决方法

没关系,我是个白痴.我没有先构建gem,所以当然没有要打开的“test_config-0.1.0.gem”文件.我首先构建了gem,现在它可以工作:
gem build test_config
原文链接:https://www.f2er.com/ruby/269153.html

猜你在找的Ruby相关文章