What is the proper way to install Node.js with nvm?

This is what I did…

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash