Use a specific version of Node.js in the current shell

fnm

  • Fast Node.js version manager.
    Install, uninstall or switch between Node.js versions.
    More information: <https://github.com/Schniz/fnm>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

fnm use {{node_version}}

click the source code to copy