Velvet Star Monitor

Standout celebrity highlights with iconic style.

general

NVM Command Not Found Issue [duplicate]

Writer Matthew Barrera

Attempted to add to this question: NVM Command Not Found, however wasn't able to.

After installing nvm im having the same issue, here is the log from terminal:

Michael-iMac:~ michaels_imac$ curl | sh % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed
100 1202 100 1202 0 0 5759 0 --:--:-- --:--:-- --:--:-- 6829
=> NVM is already installed in /Users/michaels_imac/.nvm, trying to update
=>
Already up-to-date.
Michaels-iMac:~ michaels_imac$ nvm install 0.8
-bash: nvm: command not found
0

2 Answers

The problem seems to be that gnome terminal does not load ~/.profile on startup, and there is where NVM is added to the path. You have two choices:

  • Go to "Edit" -> "Profile Preferences" in terminal and activate "Run command as a login shell". Then close and open again the terminal.

enter image description here

  • Add this at the end of ~/.bashrc:

    [[ -s /home/$USER/.nvm/nvm.sh ]] && . /home/$USER/.nvm/nvm.sh
5

i think you have miss this step

source ~/.nvm/nvm.sh

You can run this command on the bash OR you can but under the file /.bashrc or ~/.profile to automatically load

REF::

0