Node Version Manager install - nvm command not found

后端 未结 26 1883
名媛妹妹
名媛妹妹 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:32

    Add the following lines to the files ~/.bashrc and ~/.bash_profile :

    # NVM changes
    export NVM_DIR="$HOME/.nvm"
    [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
    

    and restart the terminal or do source ~/.bashrc or source ~/.bash_profile. If you need command completion for nvm then also add the line:

    [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
    

    Along with the above lines to ~/.bashrc and ~/.bash_profile.

提交回复
热议问题