Adopt nvm and .nvmrc for Consistent Node.js Version Management in openmrs-esm-core or any node project

I’d like to propose that we standardize Node.js version management in the openmrs-esm-core project (or any other node project) by adopting nvm (Node Version Manager) and adding a .nvmrc file to the repository.

Benefits:

  • Ensures all contributors use the same Node.js version, reducing “works on my machine” issues.
  • Simplifies onboarding for new developers—just run nvm use to switch to the correct version.
  • Makes CI/CD pipelines more reliable by specifying the required Node.js version.
  • Prevents accidental upgrades or downgrades of Node.js that could break builds or tests.

Proposed steps:

  1. Add a .nvmrc file specifying the recommended Node.js version for the project.
  2. Update the README file with instructions on installing nvm and using nvm use to set the correct version.

I believe this will improve consistency and developer experience for everyone working on openmrs-esm-core. Looking forward to your feedback and suggestions!