ruby-on-rails - ERROR: Error installing rails zeitwerk requires Ruby version >= 2.4.4
问题描述
I recently changed my laptop and tried installing rails with
gem install rails
and I got this error
ERROR: Error installing rails:
zeitwerk requires Ruby version >= 2.4.4.
I have installed ruby version 2.4.4, 2.5.7, and 2.6.5 and I'm still getting the same error. Any pointers how to resolve this will be greatly appreciated. thanks
解决方案
在目录中想要使用rvm use ruby-2.5.7
命令行来强制使用这个特定版本的 ruby 和 after gem install rails
。几分钟前刚试过,效果很好
推荐阅读
- amazon-web-services - 通过此更改,我会获得更好的 dynamodb 吞吐量吗?
- python - 如何在熊猫数据框中指定列类型
- tensorflow - 如何使用在 CPU 上使用 CudnnLSTM 在 GPU 上训练的模型?
- node.js - 将日期时间从 Angular 发送到 Nodejs 的正确方法是什么?
- https - 使用 mountebank 模拟 HTTPS 请求
- 3d - 如何使用threejs移动或平移场景以使对象居中?
- android - 如何在没有这个白色背景的情况下添加图像?
- server - 为 DICOM 服务器设置正确的标头以与我的 Angular 5 应用程序通信
- javascript - @babel/preset-env 不转译 ES6 类
- google-app-maker - Appmaker 标签中的悬停事件