[英]An error occurred while installing json (1.8.1), and Bundler cannot continue - Rails
An error occurred while installing json (1.8.1), and Bundler cannot continue. 安装json(1.8.1)时发生错误,Bundler无法继续。 Make sure that
gem install json -v '1.8.1'
succeeds before bundling. 在捆绑之前确保
gem install json -v '1.8.1'
成功。 xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun xcrun:错误:无效的活动开发人员路径(/ Library / Developer / CommandLineTools),缺少xcrun:/ Library / Developer / CommandLineTools / usr / bin / xcrun
make failed, exit code 1 make failed,退出代码1
I know this has already been posted but i have tried bundle update, bundle install and putting the gem file in my gem file and bundle install but nothing works from the other answers. 我知道这已经发布但我已经尝试了捆绑更新,捆绑安装并将gem文件放在我的gem文件和捆绑安装中,但其他答案没有任何作用。
ideas? 想法?
运行“捆绑更新”对我有用。
更安全的方法可以是:
bundle update json
bundle install
Remove your old Gemfile.lock file and run bundle again. 删除旧的Gemfile.lock文件并再次运行bundle。 A newer version of json should be installed.
应安装较新版本的json。
With Ruby 2.4.4, use Backup version 5.0.0.beta.1. 使用Ruby 2.4.4,使用备份版本5.0.0.beta.1。
gem install backup -v5.0.0.beta.1 gem install backup -v5.0.0.beta.1
This solved the issue for me 这解决了我的问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.