如何解决弄乱!如何卸载 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 bundler
和 gem 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 举报,一经查实,本站将立刻删除。