by Sai gowtham

How to fix the node command not found issue in Nvm

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

Here 12.14.1 is my node version number.

To view you currently installed node versions use:

nvm list

Top Udemy Courses

JavaScript - The Complete Guide 2020 (Beginner + Advanced)
JavaScript - The Complete Guide 2020 (Beginner + Advanced)
26,545 students enrolled
52 hours of video content
View Course
React - The Complete Guide (incl Hooks, React Router, Redux)
React - The Complete Guide (incl Hooks, React Router, Redux)
221,520 students enrolled
44 hours of video content
View Course
Vue JS 2 - The Complete Guide (incl. Vue Router & Vuex)
Vue JS 2 - The Complete Guide (incl. Vue Router & Vuex)
114,575 students enrolled
21 hours of video content
View Course