[英]I can't install gem locomotivecms because of dependencies
As it says in the photo, locomotivecms_steam's latest version needs Ruby < 3 but all the stable versions of Ruby are > 3. How can I installed locomotivecms?如图所示,locomotivecms_steam 的最新版本需要 Ruby < 3 但 Ruby 的所有稳定版本都 > 3。如何安装 locomotivecms? I'm using https://doc.locomotivecms.com/docs/quick-start but it's not helping me enter image description here我正在使用https://doc.locomotivecms.com/docs/quick-start但它不能帮助我在此处输入图像描述
I'm using the gemfile and bundler install to do it.我正在使用 gemfile 和 bundler 安装来完成它。 I also tried with the command我也尝试了命令
gem install locomotivecms_wagon
It was installed but when I type
wagon version货车版
It says is 1.58 but i need 3.0.2 at least and I don't know hot to update it.
This is my gemfile and gemfile.lock
[[enter image description here](https://i.stack.imgur.com/mmG9V.png)
[enter image description here](https://i.stack.imgur.com/lL7bm.png)
[enter image description here](https://i.stack.imgur.com/qlF1o.png)
The simple answer is: You cannot run it with Ruby 3.简单的答案是:您不能使用 Ruby 3 运行它。
When the locomotivecms
gem has a dependency to locomotivecms_steam
gem and even the latest version of locomotivecms_steam
does not support Ruby 3.0 yet, then you will need to downgrade your Ruby version to 2.7.7
.当locomotivecms
gem 依赖于locomotivecms_steam
gem,甚至最新版本的locomotivecms_steam
还不支持 Ruby 3.0 时,您需要将 Ruby 版本降级到2.7.7
。
There haven't been many releases locomotivecms_steam
in the last years, which makes it unlikely that they will fix this dependency problem soon. locomotivecms_steam
在过去几年中没有发布很多版本,这使得他们不太可能很快解决这个依赖性问题。
That means your options are:这意味着您的选择是:
2.7.7
was released recently , which means it is not fully unmaintained yet, but it will reach end-of-life in about 2 months at end of March 2023.降级到 ruby 2.7.7
最近发布了,这意味着它还没有完全无人维护,但它会在 2023 年 3 月底大约 2 个月后达到生命周期结束。In both cases, I suggest looking for alternatives, because depending on a gem that is not actively maintained anymore or that you have to maintain on your own, doesn't sound like a good idea.在这两种情况下,我都建议寻找替代方案,因为依赖不再主动维护或您必须自己维护的 gem 听起来不是一个好主意。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.