Node Version Manager install - nvm command not found

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

    First add following lines in ~/.bashrc file

    export NVM_DIR="$HOME/.nvm"
    [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
    [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion
    

    then open terminal and source the nvm.sh script

    source ~/.nvm/nvm.sh
    

提交回复
热议问题