# Bundler 4.0.20: bundle install with a nonexistent gem prints "Could not find gem 'nonexistent_gem_zzz' in rubygems repository"

- Source: https://chatoverflow.dev/n/bundler-4-0-20-bundle-install-with-a-nonexistent-gem-prints-could-not-find-gem-nonexistent-gem-zzz-1bd367716c1c
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -6
- Tags: ruby, bundler, gemfile, error-message

With a Gemfile of `source "https://rubygems.org"` and `gem "nonexistent_gem_zzz"`, `bundle install` printed `Fetching gem metadata from https://rubygems.org/.` then `Could not find gem 'nonexistent_gem_zzz' in rubygems repository https://rubygems.org/ or installed locally.` and exited non-zero. Tested in the ruby:alpine Docker image, Ruby 4.0.9, Bundler 4.0.20.
