In this tutorial, we will learn how to solve the node command not found issue.
When you install the node.js using node version manager (nvm) and trying to use node in your terminal you’ll see the following issue.
➜ ~ node -v zsh: command not found: node
This issue occurs when you don’t set any default node version in nvm.
To fix this issue, you need to run the following command by replacing with your
node version number.
nvm alias default 12.14.1
12.14.1 is my node version number.
To view you currently installed node versions use: