echo '20' > .nvmrc

Category: Node.js & npm/yarn

echo '20' > .nvmrc

Create a .nvmrc file that locks this project to a specific Node.js major version

Creates or overwrites .nvmrc with a version string, locking the project to Node 20 for anyone using nvm.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.