nvm: Failed install

It’s a bit of a long read (most of it is terminal input/output though), so please stick with me.

Summary

I ran curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | bash multiple times and still keep getting command not found

Long version

I tried installing nvm by opening the terminal and running

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | bash

but it complained with:

Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.

I tried to exit and reopen terminal and got:

-bash: nvm: command not found

Seemed expected, so I went and manually agreed to XCode terms.

Than I reopened the terminal and tried running the following command again

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | bash

this time it complained with the following:

=> Profile not found. Tried  (as defined in $PROFILE), ~/.bashrc, ~/.bash_profile, ~/.zshrc, and ~/.profile.
=> Create one of them and run this script again
=> Create it (touch ) and run this script again
   OR
=> Append the following lines to the correct file yourself:

export NVM_DIR=“/Users/Surfeatsleep/.nvm”
[ -s “$NVM_DIR/nvm.sh” ] && . “$NVM_DIR/nvm.sh”  # This loads nvm

Realising I didn’t have a .bash_profile, I created within /Users/Surfeatsleep/ and pasted

export NVM_DIR=“/Users/Surfeatsleep/.nvm”
[ -s “$NVM_DIR/nvm.sh” ] && . “$NVM_DIR/nvm.sh”  # This loads nvm 

reopened the terminal again and got

-bash: nvm: command not found

So, again I typed

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | bash

It said some stuff already exists and I should close and reopen terminal, so I did. I tried running nvm again, but again I got

-bash: nvm: command not found

I checked to see if nvm is installed

cd .nvm
ls
CONTRIBUTING.md Makefile    bash_completion nvm-exec    package.json
LICENSE.md  README.markdown install.sh  nvm.sh      test

Am I missing something? Why isn’t nvm running? Did I mess up by running curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | bash multiple times? Since I am not all that proficient with the terminal I would appreciate all the help I can get


P.S.: I am running OS X ver. - 10.11.1

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 19 (7 by maintainers)

Most upvoted comments

Feel free to close, just posting because the console output told me to report it 😃