Skip to content

Add .nvmrc file for Node.js version management#232

Open
MiWeiss wants to merge 1 commit intomainfrom
chore/add-nvmrc
Open

Add .nvmrc file for Node.js version management#232
MiWeiss wants to merge 1 commit intomainfrom
chore/add-nvmrc

Conversation

@MiWeiss
Copy link
Copy Markdown
Owner

@MiWeiss MiWeiss commented Jan 7, 2026

Summary

  • Added .nvmrc file specifying Node.js 20 (LTS)
  • Ensures consistent Node.js versions across development environments

Changes Made

Created .nvmrc file with content:

20

Why This Matters

Without .nvmrc:

  • Developers may use different Node.js versions
  • Inconsistent behavior across environments
  • Potential build/runtime issues from version mismatches
  • Manual coordination required for version updates

With .nvmrc:

  • Single source of truth for Node.js version
  • Automatic version switching with nvm use
  • IDE/editor integration for version detection
  • Clear documentation of Node version requirements

Supported Tools

This file is automatically recognized by:

  • nvm (Node Version Manager) - nvm use or nvm install
  • fnm (Fast Node Manager) - fnm use
  • volta - automatic switching
  • asdf - asdf install
  • Modern IDEs - VS Code, WebStorm, etc.

Version Selection

Chose Node.js 20 (LTS) because:

  • Currently used in all CI/CD workflows
  • Long-term support until April 2026
  • Stable and well-tested
  • Compatible with all project dependencies

Usage

Developers can now simply run:

nvm use

Or if Node.js 20 isn't installed:

nvm install

Test Plan

  • Verify nvm use works correctly
  • Check that the specified version matches CI/CD workflows
  • Confirm modern tooling (volta, fnm) respects the file

🤖 Generated with Claude Code

Added .nvmrc file specifying Node.js 20 (LTS) to ensure
consistent Node.js versions across development environments.

This file is automatically recognized by:
- nvm (Node Version Manager)
- fnm (Fast Node Manager)
- volta
- asdf
- Most modern IDEs

Developers can now run 'nvm use' or 'nvm install' to automatically
switch to the correct Node.js version for this project.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant