Andrew Maddison

Flowerchild.

NVM Node Version Manager .nvmrc File So You Don't Need to Install or Use Every Time

I installed NVM to manage node installation, but was irritated, because I had to run “nvm install” or “nvm use” every time I opened a new bash session.

It turns out there is a poorly documented feature, the .nvmrc file. Simply drop one into your project folder, and in it just put the version number of node (or one of NVM’s aliases, such as ‘stable’).

1
   stable

As simple as that! Then open a new bash session and browse to your folder, node should be up and running.

Comments