Node Version Manager install - nvm command not found

后端 未结 26 1782
名媛妹妹
名媛妹妹 2020-11-30 16:18

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         


        
26条回答
  •  遥遥无期
    2020-11-30 16:48

    Check your .bash_profile, .zshrc, or .profile file. You most likely had a problem during the installation.

    You should have the following at the end of one of those files.

    [[ -s $HOME/.nvm/nvm.sh ]] && . $HOME/.nvm/nvm.sh  # This loads NVM
    

    The . $HOME/.nvm/nvm.sh is the same as source $HOME/.nvm/nvm.sh

    See: Sourcing a File

    You can also check to see if you have a .nvm folder.

    ls -a | grep .nvm
    

    If you're missing that folder then the installation failed to run the git command. This could be due to being behind a proxy. Try running the following instead.

    git clone http://github.com/creationix/nvm.git .nvm
    

提交回复
热议问题