我需要安装 json 因为我收到此错误:
Could not find json-1.4.6 in any of the sources
I ran gem install json
and bundle install
但我只能在需要 json-1.4.6 时安装 json-1.5.1
I have gem 'json', '1.4.6'
在我的 gemfile 中,所以我不确定发生了什么......
UPDATE
我收到此错误:
安装 json (1.4.6) /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/fileutils.rb:1216:in `chmod': 不允许操作 - /Library/Ruby/ Gems/1.8/gems/json-1.4.6/CHANGES (Errno::EPERM)
通过运行 $herokulogs 检查日志后
我发现“安装 json (1.4.6) 时发生错误,Bundler 无法继续。
确保gem install json -v '1.4.6'
在捆绑之前成功。”
然后,我从 Gemfile.lock 中删除了 2 个 json 条目,并且没有进一步的问题。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)