加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ruby-on-rails – Ruby on Rails:在安装gem时删除依赖项?

发布时间:2020-12-16 22:47:12 所属栏目:百科 来源:网络整理
导读:我正在尝试在我的 Windows机器上安装twitter-bootstrap-rails.这个宝石依赖于therubyracer,它与Windows不兼容.我找到了这个: therubyracer gem on windows 这告诉我,我应该能够依靠JScript.虽然我不知道如何告诉gem安装忽略依赖.我试过强制安装: gem insta
我正在尝试在我的 Windows机器上安装twitter-bootstrap-rails.这个宝石依赖于therubyracer,它与Windows不兼容.我找到了这个:

therubyracer gem on windows

这告诉我,我应该能够依靠JScript.虽然我不知道如何告诉gem安装忽略依赖.我试过强制安装:

gem install -f twitter-bootstrap-rails --platform ruby

无济于事.有没有人怎么说“gem install twitter-bootstrap-rails [但忽略对therubyracer的依赖]”?

解决方法

根据 this doc,有选择
-f,--[no-]force            Force gem to install,bypassing dependency checks

--ignore-dependencies        Do not install any required dependent gems

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读