简体   繁体   English

在zsh上运行“捆绑安装”时出现错误

[英]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.

相关问题 尝试捆绑安装时出现错误 - I get an error when trying to bundle install 重新安装ruby后运行“捆绑安装”时收到bash错误消息 - I get a bash error message when I run “bundle install” after re-installing ruby 运行 bundle install 时出现错误 - I'm getting error when I run bundle install 尝试运行捆绑安装时出现权限被拒绝错误 - I get permission denied error while trying to run bundle install 当我运行捆绑安装到sinatra应用程序时,找不到gems - When i run a bundle install to a sinatra app, gems are not found 运行 bundle install 时出现 mysql gem 问题 - Issues with mysql gem when i run bundle install 捆绑秀。 我运行捆绑安装时在哪里安装了gem? 他们只是在我的Ruby上吗? - Bundle show. Where are gems installed when I run bundle install? Are they just on my Ruby? 为什么在运行捆绑安装时所有带有本机扩展的gem都无法安装? - Why are all the gems with native extensions failing to install when I run bundle install? 当我希望它使用常规ruby时,New Rails应用尝试在“bundle install”上使用jruby,有错误吗? - New Rails app tries to use jruby on “bundle install” when I expect it to use regular ruby, has errors? 运行 bundle install 时如何传递 gem 安装参数? - How can I pass a parameter for gem installation when I run bundle install?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM