无法在任何来源中找到multi_json-1.7.2 [英] Could not find multi_json-1.7.2 in any of the sources
问题描述
这个说法的其他相关问题用于捆绑更新多重json或绑定更新或删除Gemfile .lock和bundle install(都是一样的)。
我的gemfile不会调用multi-json
我试着指定一个multi-json版本,但总是遇到同样的问题部署到heroku时。我的开发环境工作正常。
我还将捆绑器更新到1.3.6,并再次尝试了所有内容。
----->使用Ruby版本:ruby-1.9.3
----->使用Bundler版本1.3.2安装依赖关系
正在运行:bundle install --without development:test --path vendor / bundle --binstubs vendor / bundle / bin --deployment
fatal:不是git存储库或任何父目录):.git
致命:不是git存储库(或任何父目录):.git
致命:不是git存储库(或任何父目录): .git
您的供应商/缓存目录中似乎缺少一些宝石。
无法在任何源
中找到multi_json-1.7.2!
!无法通过Bundler安装宝石。
!
! Heroku推送被拒绝,未能编译Ruby / rails应用程序
诀窍是因为供应商/缓存存在,它正在寻找该文件夹中的multi_json。我刚刚删除它并推送,它正在工作。
这个问题有帮助
I am getting this error when pushing to my heroku staging environment.
Other related questions to this say to bundle update multi-json or to bundle update or remove Gemfile.lock and bundle install (which are all the same). None of these solutions worked for me.
my gemfile does not call multi-json I tried specifying a version of multi-json but always encountered the same problem when deploying to heroku. My dev environment works fine.
I also updated bundler to 1.3.6 and tried everything again
-----> Using Ruby version: ruby-1.9.3
-----> Installing dependencies using Bundler version 1.3.2
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin --deployment
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
Some gems seem to be missing from your vendor/cache directory.
Could not find multi_json-1.7.2 in any of the sources
!
! Failed to install gems via Bundler.
!
! Heroku push rejected, failed to compile Ruby/rails app
The trick was that because vendor/cache was present, it was looking for multi_json in that folder. I just deleted it and pushed and it is working.
this question helped
What is the purpose of vendor/bundle? Heroku tells me to remove it
这篇关于无法在任何来源中找到multi_json-1.7.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!