Manage node versions for a specific project directory using nvm

PHOTO EMBED

Sat Jan 21 2023 03:10:17 GMT+0000 (Coordinated Universal Time)

Saved by @Gimnath #commandline #nodejs

// create a .nvmrc file in the project root directory and include node version u need to manage 
// ex: v16.16.0
// Execute following command in the root directory using a terminal

$ nvm use
Found '/path/to/project/.nvmrc' with version <5.9>
Now using node v5.9.1 (npm v3.7.3)
content_copyCOPY

https://github.com/nvm-sh/nvm#nvmrc