Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check that required version of bundle is installed #246

Open
fluiddot opened this issue Mar 8, 2024 · 1 comment
Open

Check that required version of bundle is installed #246

fluiddot opened this issue Mar 8, 2024 · 1 comment

Comments

@fluiddot
Copy link
Contributor

fluiddot commented Mar 8, 2024

I've encountered an error when CLI executed the command preios related to bundler version:

> @wordpress/[email protected] preios
> cd ios && (bundle check > /dev/null || bundle install) && bundle exec pod install --repo-update

/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems.rb:283:in `find_spec_for_exe': Could not find 'bundler' (2.3.18) required by your /private/var/folders/s7/lwl9q12j2_31hw8y1vkmln180000gn/T/gbm-2417695763/gb/packages/react-native-editor/ios/Gemfile.lock. (Gem::GemNotFoundException)
To update to the latest version installed on your system, run `bundle update --bundler`.
To install the missing version, run `gem install bundler:2.3.18`
	from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems.rb:302:in `activate_bin_path'
	from /usr/bin/bundle:23:in `<main>'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems.rb:283:in `find_spec_for_exe': Could not find 'bundler' (2.3.18) required by your /private/var/folders/s7/lwl9q12j2_31hw8y1vkmln180000gn/T/gbm-2417695763/gb/packages/react-native-editor/ios/Gemfile.lock. (Gem::GemNotFoundException)
To update to the latest version installed on your system, run `bundle update --bundler`.
To install the missing version, run `gem install bundler:2.3.18`
	from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems.rb:302:in `activate_bin_path'
	from /usr/bin/bundle:23:in `<main>'
[ERROR] error running npm run core preios: exit status 1

To avoid this issue in the future, it would be great if we check that the bundler version installed is the required one.

@fluiddot
Copy link
Contributor Author

fluiddot commented Mar 8, 2024

For reference, I managed to address the issue I shared by installing a newer version and updating the symlink of the binary:
sudo gem install bundler -n /usr/local/bin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant