📖 Reading: README Installation Section
3 exercises — read a realistic project README installation section and answer comprehension questions about version requirements, environment configuration, optional dependencies, and troubleshooting hints.
README installation reading tips
- >= X.Y.Z → your version must be at least X.Y.Z — check before starting
- .env.example → .env → template to real config; never commit real .env to git
- "At minimum, set X" → X is required; other vars are optional
- "Optional — required only for feature Y" → you need it if you use feature Y
- Read ALL prerequisites before running any install commands
0 / 3 completed
1 / 3
DevHub — README Installation Section
{ex.passage} The Prerequisites section states: "Node.js >= 18.0.0 (LTS recommended; 20.x tested)". You are running Node.js 16.20.0. What does this mean for your installation attempt?
Reading version requirements — >= means "at least this version"
The notation
Why the minimum exists: Node 18 introduced or stabilised APIs the project depends on — commonly: the Fetch API (native),
The notation
Node.js >= 18.0.0 is a mathematical inequality: your Node version must be greater than or equal to 18.0.0. Node 16.20.0 is less than 18.0.0, so it does not satisfy this requirement.Why the minimum exists: Node 18 introduced or stabilised APIs the project depends on — commonly: the Fetch API (native),
--experimental-vm-modules, updated crypto module, or performance improvements. The project author tested and supports only 18+. On 16, you might encounter:- Install-time errors (
npm installfails due to a native module requiring a newer V8) - Runtime crashes on API calls that don't exist in Node 16
- Subtle behavioural differences that produce incorrect output without clear error messages
- "LTS recommended" → LTS (Long Term Support) versions receive security and bug fixes for ~3 years. For production, always prefer an LTS version (even-numbered: 18, 20, 22) over a Current release (odd-numbered: 19, 21).
- "20.x tested" → The maintainers specifically ran the test suite against Node 20. This doesn't mean 20 is required — it means it's verified to work.
node --version to check. Use nvm (Node Version Manager) or fnm (Fast Node Manager) to switch between versions easily. Most projects include a .nvmrc or .node-version file with the recommended version — run nvm use in the project directory to switch automatically.