Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在我的 Windows 机器上安装新的 gem 时禁止下载 ri 和 rdoc。在 linux 上,我们可以编辑 .gemrc 文件。在 Windows 中有什么方法可以做到这一点?
对于窗口用户,您可以使用。
(echo install: --no-document && echo update: --no-document) >> c:\ProgramData\gemrc
或者
c:\Documents and Settings\All Users\Application Data\gemrc
您也可以查看以下链接
如何使 --no-ri --no-rdoc 成为 gem 安装的默认值?