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.
错误:回形针不是捆绑包的一部分。将其添加到 Gemfile。(宝石::加载错误)
要在捆绑列表中添加paperclipgem,我尝试了以下方法:
paperclip
bundle install paperclip
但再次发生错误,即:
您的捆绑包已完成!它已安装到 ./paperclip 不推荐使用 bundle install 的路径参数。它将在 1.1 版中删除。请改用 bundle install --path 回形针。
请帮助我。
Gemfile在您喜欢的文本编辑器中打开。添加行gem 'paperclip'。然后运行bundle install
Gemfile
gem 'paperclip'
bundle install
将 gem 添加到包中的另一种方法是运行:
bundle add paperclip
bundle add从 Bundler v1.15 开始似乎支持该命令。
bundle add
当您运行bundle add时,请求的 gem 将被添加到 Gemfile 中,并且bundle install会自动执行,因此您不必自己运行它。