How to fix the nvm command not found Error

How to fix the nvm command not found Error

In this post we will give you information about How to fix the nvm command not found Error. Hear we will give you detail about How to fix the nvm command not found ErrorAnd how to use it also give you demo for it if it is necessary.

we will learn how to solve the nvm command not found error.

When you install an nvm (node version manager) using the installation script, if you try to use thenvm command in your terminal it shows the following issue.

➜  ~ nvm --versionzsh: command not found: nvm

To solve the command not found issue, you need to add the following code to your bash file (/.bashrc) or zsh file (/.zshrc) and restart your terminal.

export NVM_DIR="$HOME/.nvm"[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"  # This loads nvm[ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion"  # This loads nvm bash_completion

To open the bash file in vscode use:

code ~/.bashrc

To open the zsh file in vscode use:

code ~/.zshrc

Hope this code and post will helped you for implement How to fix the nvm command not found Error. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve us. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs

For More Info See :: laravel And github

We're accepting well-written guest posts and this is a great opportunity to collaborate : Contact US