Node Version Manager install - nvm command not found

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

    In macOS, i had to source it using source ~/.nvm/nvm.sh command to fix this problem.

    After that, add these lines

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

    onto ~/.bash_profile so that nvm will be sourced automatically upon login.

提交回复
热议问题