Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Question - installing gems #147

Discussion options

When running bundle install --path .vendor/bundle --without development in the root directory of the repository I'm receiving this error:

Traceback (most recent call last):
2: from /usr/bin/bundle:23:in <main>' 1: from /Library/Ruby/Site/2.6.0/rubygems.rb:284:in activate_bin_path'
/Library/Ruby/Site/2.6.0/rubygems.rb:265:in `find_spec_for_exe': can't find gem bundler (>= 0.a) with executable bundle (Gem::GemNotFoundException)

I tried digging around a little nothing I came across seemed to be a fix for my environment:

Ruby 2.6.3
Gem 3.3.9
OSX 10.15.7

Any assistance would be greatly appreciated.

You must be logged in to vote

I believe I've fixed this by running: gem install bundler --user-install and then exporting it to path. In my case that looked like:
echo 'export PATH="/Users/myuser/.gem/ruby/2.6.0/bin:$PATH"' >> ~/.zshrc

Replies: 1 comment

Comment options

I believe I've fixed this by running: gem install bundler --user-install and then exporting it to path. In my case that looked like:
echo 'export PATH="/Users/myuser/.gem/ruby/2.6.0/bin:$PATH"' >> ~/.zshrc

You must be logged in to vote
0 replies
Answer selected by Falroi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /