As of 2025, installing nvm via Homebrew is deprecated.
Homebrew installation is not supported. If you have issues with homebrew-installed nvm, please brew uninstall it, and install it using the instructions below, before filing an issue.
https://github.com/nvm-sh/nvm/blob/44a3cdb9b8738ae02237972ec58728a568f9d552/README.md?plain=1#L310
Therefore, We need to edit it for installation using a different method.
such as curl.