ruby – 避免镜子安装新发布的宝石
发布时间:2020-12-17 02:20:32 所属栏目:百科 来源:网络整理
导读:Bundler 1.3.0刚刚发布(到目前为止已经安装了 only 10 people),但我只能安装预版本或以前的版本. $gem install bundler --version 1.3.0 --verboseHEAD http://rubygems.org/specs.4.8.gz302 Moved TemporarilyHEAD http://production.s3.rubygems.org/specs
Bundler 1.3.0刚刚发布(到目前为止已经安装了
only 10 people),但我只能安装预版本或以前的版本.
$gem install bundler --version 1.3.0 --verbose HEAD http://rubygems.org/specs.4.8.gz 302 Moved Temporarily HEAD http://production.s3.rubygems.org/specs.4.8.gz 304 Not Modified ERROR: Could not find a valid gem 'bundler' (= 1.3.0) in any repository HEAD http://rubygems.org/prerelease_specs.4.8.gz 302 Moved Temporarily HEAD http://production.s3.rubygems.org/prerelease_specs.4.8.gz 304 Not Modified ERROR: Possible alternatives: bundler $gem install bundler --version 1.3.0 --clear-sources --source http://rubygems.org --verbose HEAD http://rubygems.org/specs.4.8.gz 302 Moved Temporarily HEAD http://production.s3.rubygems.org/specs.4.8.gz 304 Not Modified ERROR: Could not find a valid gem 'bundler' (= 1.3.0) in any repository HEAD http://rubygems.org/prerelease_specs.4.8.gz 302 Moved Temporarily HEAD http://production.s3.rubygems.org/prerelease_specs.4.8.gz 304 Not Modified ERROR: Possible alternatives: bundler $gem install bundler --verbose HEAD http://rubygems.org/latest_specs.4.8.gz 302 Moved Temporarily HEAD http://production.s3.rubygems.org/latest_specs.4.8.gz 304 Not Modified Installing gem bundler-1.2.4 /Users/agrimm/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/bundler-1.2.4/.gitignore <snip> /Users/agrimm/.rbenv/versions/2.0.0-p0/bin/bundle Successfully installed bundler-1.2.4 Parsing documentation for bundler-1.2.4 Parsing sources... 100% [100/100] lib/bundler/vlad.rb Done installing documentation for bundler (2 sec). 1 gem installed 我如何告诉rubygems查看规范的存储库,而不是过时的镜像? 解决方法
我从
rubygems.org下载了
gem file,并使用gem install path / to / gem / file安装了它.
有人说他们是通过gem install bundler –pre安装的,但是我没试过. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |