简体   繁体   English

安装json(1.8.1)时发生错误,Bundler无法继续 - Rails

[英]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? 想法?

运行“捆绑更新”对我有用。

You can try bundle update && bundle install . 您可以尝试bundle update && bundle install
More on this here . 更多关于这里

更安全的方法可以是:
bundle update json
bundle install

Run the following in terminal: 在终端中运行以下命令:

xcode-select --install

Source 资源

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.

相关问题 安装 json (1.8.1) 时出错,Bundler 无法继续 - An error occurred while installing json (1.8.1) and Bundler cannot continue 得到以下错误安装json(1.8.1)时发生错误,并且Bundler无法继续 - Getting following error An error occurred while installing json (1.8.1), and Bundler cannot continue Rails中的“安装json(1.8.0)时发生错误,并且Bundler无法继续” - “An error occurred while installing json (1.8.0), and Bundler cannot continue” in Rails 安装 json (1.7.6) 时出错,Bundler 无法继续。 - An error occurred while installing json (1.7.6), and Bundler cannot continue. 安装json(1.8.6)时出错,Bundler无法继续 - An error occurred while installing json (1.8.6), and Bundler cannot continue 安装rails json gem时出错 - bundler无法继续 - Error while installing rails json gem - bundler cannot continue 安装 sqlite3 (1.3.7) 时出错,Bundler 无法继续无法创建 rails 应用程序 - An error occurred while installing sqlite3 (1.3.7), and Bundler cannot continue Cannot create rails app Windows 10上的Rails错误(安装sqlite3(1.4.1)时发生错误,并且Bundler无法继续) - Rails error on windows 10 (An error occurred while installing sqlite3 (1.4.1), and Bundler cannot continue) Rails - 错误“安装 sqlite3 (1.3.13) 时出错,Bundler 无法继续” - Rails - error " An error occurred while installing sqlite3 (1.3.13), and Bundler cannot continue" 安装atomic(1.1.16)时发生错误,Bundler无法继续 - An error occurred while installing atomic (1.1.16) and Bundler cannot continue
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM