Manage Node.js versions using asdf
Blog post from LogRocket
asdf is an extendible version manager that simplifies managing multiple runtime versions across various programming languages, such as Ruby, Node.js, Elixir, Erlang, and Python, using a single CLI tool. It allows users to switch between different language versions globally or on a per-directory basis, making it particularly advantageous for polyglot programmers and multi-language projects. The tool streamlines the installation, updating, and removal of language versions and supports a broad ecosystem of plugins, including both first-party and community-developed options. While it specializes in managing language runtimes, asdf complements general package managers like Homebrew and Choco, which handle software packages. Users can set language versions globally, locally, or for individual shell sessions, and asdf provides legacy support for existing version manager files. Alternatives like NVM, n, fnm, and Volta offer similar functionalities for Node.js but may cater better to specific use cases or preferences.