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.git
asdf list all nodejs
asdf latest nodejs
18.9.0
asdf install nodejs latest
asdf list
nodejs
18.9.0
asdf current
nodejs ______ No version is set. Run "asdf nodejs "
asdf global nodejs latest
asdf current
nodejs 18.9.0 /Users/your_name/.tool-versions
cat ~/.tool-versions
nodejs 18.9.0
asdf install nodejs lts
asdf list
nodejs
16.17.0
18.9.0
lts
asdf local nodejs lts
asdf 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.