如何使用 Bundler 添加 gem
错误:回形针不是捆绑包的一部分。将其添加到 Gemfile 中。 (宝石::加载错误)
在捆绑列表中添加 paperclip
gem 我尝试了以下操作:
bundle install paperclip
但再次出现错误:
您的捆绑包已完成!它被安装到 ./paperclip 捆绑安装的路径参数已被弃用。它将在 1.1 版本中被删除。请改用bundle install --path paperclip。
请帮助我。
ERROR: paperclip is not part of the bundle. Add it to Gemfile. (Gem::LoadError)
to add paperclip
gem in bundle list I tried the following:
bundle install paperclip
but yet again error occurs that is:
Your bundle is complete! It was installed into ./paperclip The path argument to bundle install is deprecated. It will be removed in version 1.1. Please use bundle install --path paperclip instead.
kindly assist me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在您喜欢的文本编辑器中打开
Gemfile
。添加行gem 'paperclip'
。然后运行捆绑安装
Open
Gemfile
in your favorite text editor. Add the linegem 'paperclip'
. Then runbundle install
将 gem 添加到捆绑包的另一种方法是运行:
从 Bundler v1.15 开始似乎支持
bundle add
命令。当您运行
bundle add
时,请求的 gem 会添加到 Gemfile 中,并且bundle install
会自动执行,因此您不必自己运行它。Another way to add a gem to the bundle is to run:
The
bundle add
command seems to be supported since Bundler v1.15.When you run
bundle add
, the requested gem is added to the Gemfile and thebundle install
is being executed automatically so you don't have to run it yourself.