我试图在没有rubygems的情况下捆绑安装,引入nokogumbo并在安装中运行它。
在我的gemfile中,我有
...
group :nonbundled do
gem 'nokogumbo', '1.4.13'
end
...运行bundle install --without nonbundled仍在搜索gem
...
Using jquery-ui-rails 6.0.1
Using jwt 1.5.6
Using koala 3.0.0
Using mini_magick 4.5.1
Using ruby-progressbar 1.8.1
Using minitest-reporters 1.1.9
Using multi_xml 0.6.0
Fetching nokogumbo 1.4.13
Installing nokogumbo 1.4.13 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
...这里发生什么事情?
谢谢。
发布于 2019-08-29 13:24:15
您在评论中提到,nokogumbo是另一个gem的依赖项。正因为如此,它才得以安装。
如果你在安装包的时候使用了--without参数,并且假设跳过的gem作为依赖项存在于另一个Gem中,那么它就会被安装。
https://stackoverflow.com/questions/57690272
复制相似问题