See https://mise.jdx.dev/ for more details.
I'm on MacOS and used these steps:
brew install miseecho 'eval "$(mise activate zsh)"' >> ~/.zshrc
After that you can cd into the different node directories and run one of the
following commands to verify what version of node is running:
node --versionpnpm foo
This has also been tested within VSCode/Cursor. You may have to restart your IDE for shell settings to take effect.