Skip to content

Instantly share code, notes, and snippets.

@fdnklg
Last active February 1, 2020 12:40
Show Gist options
  • Save fdnklg/0ea70b967feb69f6d280fa1fe5cdd3e0 to your computer and use it in GitHub Desktop.
Save fdnklg/0ea70b967feb69f6d280fa1fe5cdd3e0 to your computer and use it in GitHub Desktop.

Organise your Node Node.js versions!

Requirements:

  • Zshell
  • NVM
  1. Just place a .nvmrc file inside the root of you project directory and add the version to be used inside
$ echo "5.9" > .nvmrc
$ echo "lts/*" > .nvmrc # to default to the latest LTS version

Link to the article: Automatic node version switch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment