[英]An error occurred while installing json (1.8.1) and Bundler cannot continue
[英]An error occurred while installing json (1.8.1), and Bundler cannot continue - Rails
安装json(1.8.1)时发生错误,Bundler无法继续。 在捆绑之前确保gem install json -v '1.8.1'
成功。 xcrun:错误:无效的活动开发人员路径(/ Library / Developer / CommandLineTools),缺少xcrun:/ Library / Developer / CommandLineTools / usr / bin / xcrun
make failed,退出代码1
我知道这已经发布但我已经尝试了捆绑更新,捆绑安装并将gem文件放在我的gem文件和捆绑安装中,但其他答案没有任何作用。
想法?
运行“捆绑更新”对我有用。
您可以尝试bundle update && bundle install
。
更多关于这里 。
更安全的方法可以是:
bundle update json
bundle install
删除旧的Gemfile.lock文件并再次运行bundle。 应安装较新版本的json。
使用Ruby 2.4.4,使用备份版本5.0.0.beta.1。
gem install backup -v5.0.0.beta.1
这解决了我的问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.