[英]Ruby bundle install not working
我遇到了有线问题。 在Gemfile.lock
,它声明json (1.8.6)
。
基本上,我可以使用bundle install
安装json-1.8.6
。
但是,当我运行rspec
命令时,它仍然引发以下错误。
Could not find json-1.8.6 in any of the sources
Run `bundle install` to install missing gems.
Bundler版本1.15.0
红宝石2.3.3
检查您的gemfile中的红宝石来源应该是: source 'https://rubygems.org'
或尝试添加gem的github路径:
gem 'json', :git => 'https://github.com/flori/json.git'
也尝试进行bundle update
。
如果这些都不起作用,请发布您的gemfile。
我最近也遇到过类似的问题,无法安装其中一颗宝石。 我不确定为什么,但是我认为这是由于新的Windows更新(只是盲目)
我设法通过重新安装 Ruby和devkit来修复它。
祝好运!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.