弄乱!如何卸载 gem bundler?

问题描述

我在尝试解决问题时有点搞砸了。

我正在寻找一些解决方案来解决这个问题

 cap staging deploy
rbenv: cap: command not found

The `cap' command exists in these Ruby versions:
  3.0.0

我遇到的一个解决方案与 gem install bundler 有关

为了检查我的 gem bundler,我运行了 gem list bundler,它没有列出任何东西,所以我运行了 gem install bundler,它安装了 bundler (2.2.23)

但是,当我运行 bundle install 时,我得到了:

Traceback (most recent call last):
    2: from /Users/kiki/.rbenv/versions/2.5.1/bin/bundle:23:in `<main>'
    1: from /Users/kiki/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems.rb:308:in `activate_bin_path'
/Users/kiki/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems.rb:289:in `find_spec_for_exe': can't find gem bundler (>= 0.a) with executable bundle (Gem::GemNotFoundException)

所以我想卸载/撤消我采取的步骤。但是,输入 gem uninstall bundlergem uninstall bundler -v 2.2.23 不起作用!它不断返回 Gem 'bundler' is not installed,在新的终端中,当我再次运行命令时,它返回 Gem bundler-2.2.23 cannot be uninstalled because it is a default gem

我该如何解决

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)