I’ll introduce how to install and manage multiple versions of Node.js using the asdf plugin asdf-nodejs.
 
I had been using nvm for Node.js version management until now, but since I started using asdf, I migrated from nvm to asdf-nodejs.
asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.gitasdf list all nodejsasdf latest nodejs
18.9.0
asdf install nodejs latestasdf list
nodejs
  18.9.0
asdf current
nodejs          ______          No version is set. Run "asdf  nodejs "
  asdf global nodejs latestasdf current
nodejs          18.9.0          /Users/your_name/.tool-versions
cat ~/.tool-versions
nodejs 18.9.0
asdf install nodejs ltsasdf list
nodejs
  16.17.0
  18.9.0
  lts
asdf local nodejs ltsasdf current
nodejs          lts             /Users/your_name/sample/.tool-versions
cat .tool-versions
nodejs lts
That’s all from the Gemba, where I migrated Node.js multiple version management from nvm to asdf.