vagrant 插件安装错误`gem install little-plugger -v '1.1.4'` 在打包前成功 [英] vagrant plugin install error `gem install little-plugger -v '1.1.4'` succeeds before bundling

查看:22
本文介绍了vagrant 插件安装错误`gem install little-plugger -v '1.1.4'` 在打包前成功的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

vagrant plugin install vagrant-parallels

安装vagrant-parallels"插件.这可能需要几分钟...Bundler,Vagrant 用来安装插件的底层系统,报告了一个错误.错误如下所示.这些错误通常是由错误配置的插件安装或瞬态网络引起问题.来自 Bundler 的错误是:

Installing the 'vagrant-parallels' plugin. This can take a few minutes... Bundler, the underlying system Vagrant uses to install plugins, reported an error. The error is shown below. These errors are usually caused by misconfigured plugin installations or transient network issues. The error from Bundler is:

安装 little-plugger (1.1.4) 时出错,Bundler 无法继续.打包前确保 gem install little-plugger -v '1.1.4' 成功.

An error occurred while installing little-plugger (1.1.4), and Bundler cannot continue. Make sure that gem install little-plugger -v '1.1.4' succeeds before bundling.

警告:此 Gemfile 包含多个主要来源.在没有块的情况下多次使用 source 存在安全风险,

Warning: this Gemfile contains multiple primary sources. Using source more than once without a block is a security risk,

并且可能会导致安装意外的 gems.要解决此警告,请使用块来指示哪些 gem 应该来自次要来源.要将此警告升级为错误,请运行 bundle config disable_multisource true.警告:此 Gemfile 包含多个主要来源.在没有块的情况下多次使用 source 存在安全风险,并可能导致安装意外的 gem.要解决此警告,请使用块来指示哪些 gem 应该来自次要来源.要将此警告升级为错误,请运行 bundle config disable_multisource true.Gem::RemoteFetcher::FetchError: Errno::ECONNRESET: Connection reset by peer - SSL_connect (https://rubygems.org/gems/little-plugger-1.1.4.gem)

and may result in installing unexpected gems. To resolve this warning, use a block to indicate which gems should come from the secondary source. To upgrade this warning to an error, run bundle config disable_multisource true.Warning: this Gemfile contains multiple primary sources. Using source more than once without a block is a security risk, and may result in installing unexpected gems. To resolve this warning, use a block to indicate which gems should come from the secondary source. To upgrade this warning to an error, run bundle config disable_multisource true.Gem::RemoteFetcher::FetchError: Errno::ECONNRESET: Connection reset by peer - SSL_connect (https://rubygems.org/gems/little-plugger-1.1.4.gem)

当我改变--plugin-source

when I change the --plugin-source

 vagrant plugin install vagrant-parallels --plugin-source https://ruby.taobao.org/

错误是一样的.那我试试

The error is the same. Then I try

gem install little-plugger -v '1.1.4'

成功安装 little-plugger-1.1.4

Successfully installed little-plugger-1.1.4

little-plugger-1.1.4 的解析文档

Parsing documentation for little-plugger-1.1.4

0 秒后完成 little-plugger 的文档安装

Done installing documentation for little-plugger after 0 seconds

安装了 1 个 gem然后

1 gem installed Then

vagrant plugin install vagrant-parallels --plugin-source https://ruby.taobao.org/

还是不行

我尝试更改所有 gemfile 源

I try to change all the gemfile source

source "https://ruby.taobao.org

但是还是不行.我使用 gem 源 -l <​​/p>

But It still don't work. I use gem sources -l

$ gem sources -l   

获取关注:
https://ruby.taobao.org/

我不知道如何解决它.

推荐答案

我有个笨办法第一的gem install little-plugger -v '1.1.4' in/Library/Ruby/Gems/2.0.0然后复制

I have a stupid way first gem install little-plugger -v '1.1.4' in /Library/Ruby/Gems/2.0.0 and then copy

sudo cp -r gems/little-plugger-1.1.4/ /opt/vagrant/embedded/gems/gems/
sudo cp -r specifications/little-plugger-1.1.4.gemspec /opt/vagrant/embedded/gems/specifications
sudo cp -r doc/little-plugger-1.1.4 /opt/vagrant/embedded/gems/doc
sudo cp cache/little-plugger-1.1.4.gem /opt/vagrant/embedded/gems/cache

它奏效了.但是还有什么方便的方式可以设置gem安装路径

It worked. But what other convenient way can set the gem install path

这篇关于vagrant 插件安装错误`gem install little-plugger -v '1.1.4'` 在打包前成功的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆