Categories
JavaScript Answers

How to write a .nvmrc file which automatically change Node version?

Spread the love

To write a .nvmrc file which automatically change Node version, we put the Node version into the file.

For instance, we we run

$ node -v > .nvmrc

to get the Node.js version with node -v and put it into the .nvmrc file with >.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *