I am trying to install NVM as per these instructions
I typed in this command in terminal:
$ curl https://raw.github.com/creationix/nvm/master/instal
For my case, it because I use fish. if I not start fish, just type nvm will no error now.