rbenv:捆绑器:找不到命令

rbenv: bundler: command not found

为了在我的本地 Ubuntu 上 运行 一个 Rails 应用程序,我尝试使用命令 gem install bunder / bundle install 安装 gem .但是,我得到了错误:

rbenv: bundler: command not found . The `bundler' command exists in these Ruby versions:

2.4
2.4.1
2.4.2
2.4.5
2.5
2.5.0
2.5.1
2.5.3
2.5.7
2.5.8
2.6
2.6.0
2.6.1
2.6.3
2.6.4
2.6.5
2.6.6
2.6.7
2.6.8

我在 rails 应用程序的根目录中通过 运行 命令 gem install bundler 修复了它。