gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 05:23:54 27 4
gpt4 key购买 nike

我尝试在糟糕的互联网连接上首次推出 ruby gem 。当我第一次尝试推送时,我能够登录,然后卡在那里大约10分钟而没有任何进展迹象,因此我决定将其杀死并打入ctrl+c,这可能是一个糟糕的决定。从 session 中:

$ 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

现在,当我尝试再次推送它(通过更好的Internet连接)时,我得到以下信息:
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

关于gem push错误-(Gem::Package::FormatError)-没有这样的文件或目录@ rb_sysopen,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24749225/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com