/opt/homebrew/bin/node
is from Homebrew, you need to uninstall it:bashCopy codebrew uninstall node
After uninstalling, verify it’s removed:bashCopy codewhich node
If it still points to /opt/homebrew/bin/node
, you might need to remove leftover symlinks:bashCopy coderm -rf /opt/homebrew/bin/node
source ~/.zshrc # or ~/.bashrc depending on your shell
nvm
Configuration: Ensure that your terminal is loading the nvm
environment correctly. Run:bashCopy codecommand -v nvm
It should output something like:Copy codenvm
nvm
to Manage Node: Re-run the following commands to use the nvm
-managed Node.js version:bashCopy codenvm install 22 nvm use 22
Then check the version:bashCopy codenode -v
It should now display:Copy codev22.11.0
nvm
-managed Node.js is always used by default:bashCopy codenvm alias default 22
node -v
It should still display v22.11.0
.Have any questions or comments? Write them below!