[英]Can't install devise_token_auth
I'm attempting to install devise_token_auth.我正在尝试安装 devise_token_auth。 The instructions say to add gem 'devise_token_auth'
to my Gemfile, then run bundle install
.说明说要将gem 'devise_token_auth'
添加到我的 Gemfile,然后运行bundle install
。 I created a brand new API only Rails app, follow the instructions, and get the following:我创建了一个全新的 API 只有 Rails 应用程序,按照说明进行操作,并获得以下信息:
Bundler could not find compatible versions for gem "rails":
In Gemfile:
rails (~> 6.1.1) x86_64-darwin-20
devise_token_auth x86_64-darwin-20 was resolved to 0.1.21.alpha2, which depends on
rails (~> 4.1.4)
What is x86_64-darwin-20
?什么是x86_64-darwin-20
? That's not in the Gemfile, but I'm working on MacOS.那不在 Gemfile 中,但我正在使用 MacOS。 What's going on?这是怎么回事?
Credit to Rockwell Rice: https://rubygems.org/gems/devise_token_auth/versions/1.1.4 shows you the dependencies.归功于 Rockwell Rice: https://rubygems.org/gems/devise_token_auth/versions/1.1.4向您展示了依赖关系。
devise_token_auth depends on rails >= 4.2.0, < 6.1. devise_token_auth 取决于 rails >= 4.2.0, < 6.1。 So I just recreated a new rails app with version 6.0.所以我刚刚用 6.0 版重新创建了一个新的 rails 应用程序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.