.nvmrc Generator

Generate .nvmrc files instantly. Pick a Node.js version, choose your format, and download a ready-to-use .nvmrc for your project. All processing happens client-side.

Node.js Version

About .nvmrc Generator

.nvmrc is a simple file that tells nvm (Node Version Manager) which Node.js version to use for a project. It ensures everyone on the team uses the same Node.js version, preventing "works on my machine" issues. This generator creates properly formatted .nvmrc files with version metadata and lifecycle information. All generation happens client-side — no data is sent to any server.

Features

Frequently Asked Questions

What is .nvmrc and why do I need it?

.nvmrc is a file that specifies the Node.js version for your project. When you run "nvm use" in a directory containing .nvmrc, nvm automatically switches to that version. It ensures consistency across development environments and CI/CD pipelines.

What is the difference between lts/* and node?

"lts/*" resolves to the latest Long-Term Support version of Node.js (currently v22.x), which is recommended for production. "node" resolves to the latest stable release, which may include newer features but shorter support.

Should I use exact version or major-only?

Exact version (e.g., 22.15.0) gives the most reproducible builds — everyone uses exactly the same version. Major-only (e.g., 22) allows automatic patch updates within the same major version, which is convenient for receiving security fixes.

Does this work with fnm or volta?

Yes! Both fnm (Fast Node Manager) and volta read .nvmrc files. The format is standard — any Node.js version manager that supports .nvmrc will work with files generated by this tool.