[英]I get errors when I run “bundle install” on zsh
I'm having an error messages with trying to run "bundle install". 我在尝试运行“捆绑安装”时收到一条错误消息。 My ruby version is 2.2.0. 我的红宝石版本是2.2.0。 Also, I installed it with rvm and did an "rvm use" command to change it from 2.4.0 to 2.2.0 because I thought it might fix the error. 另外,我用rvm安装了它,并执行了“ rvm use”命令将其从2.4.0更改为2.2.0,因为我认为它可以修复错误。 Anyway I need your help. 无论如何,我需要您的帮助。 Much appreciated. 非常感激。
I currently have 3 versions of ruby : 2.2.3, 2.2.0, 2.4.0 我目前有3个版本的ruby:2.2.3、2.2.0、2.4.0
My OS MAC OS Sierra 10.12.3 我的操作系统MAC OS Sierra 10.12.3
My shell is zsh. 我的外壳是zsh。
/Users/root/.rvm/rubies/ruby-2.2.3/lib/ruby/site_ruby/2.2.0/rubygems.rb:270:in `find_spec_for_exe': can't find gem bundler (>= 0.a) (Gem::GemNotFoundException)
from /Users/root/.rvm/rubies/ruby-2.2.3/lib/ruby/site_ruby/2.2.0/rubygems.rb:298:in `activate_bin_path'
from /usr/local/bin/bundle:22:in `<main>'
from /Users/root/.rvm/gems/ruby-2.2.3/bin/ruby_executable_hooks:15:in `eval'
from /Users/root/.rvm/gems/ruby-2.2.3/bin/ruby_executable_hooks:15:in `<main>'
It seems you have not installed gem bundler
. 看来您尚未安装gem bundler
。 Try: 尝试:
gem install bundler
then bundle install
again. 然后再次bundle install
。
Not exactly sure what the issue was. 不完全确定问题是什么。 But going into my .gemrc file and deleting 但是进入我的.gemrc文件并删除
install: "--user --no-document"
update: "--user --no-document"
solved the problem 解决了问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.