Bird
0
0

Why might gem install fail silently or not install the gem even though the command runs without errors?

hard📝 Conceptual Q10 of 15
Ruby - Gems and Bundler
Why might gem install fail silently or not install the gem even though the command runs without errors?
ABecause the gem name is misspelled
BBecause RubyGems is outdated and needs updating
CBecause the gem is already installed and the version matches
DBecause the system has no internet connection
Step-by-Step Solution
Solution:
  1. Step 1: Understand silent skip behavior

    If the gem and version requested are already installed, gem install may not reinstall or show errors, appearing silent.
  2. Step 2: Analyze other options

    Outdated RubyGems or misspelled gem names cause errors, and no internet causes network errors, not silent skips.
  3. Final Answer:

    Because the gem is already installed and the version matches -> Option C
  4. Quick Check:

    Silent install skip = gem already installed [OK]
Quick Trick: Silent install means gem already installed with matching version [OK]
Common Mistakes:
  • Assuming silent means error
  • Ignoring gem version match
  • Thinking network issues cause silent skips

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Ruby Quizzes