美文网首页
Linux or MacOS nvm 安装

Linux or MacOS nvm 安装

作者: iamsea | 来源:发表于2021-01-17 11:25 被阅读0次

    first step

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

    second step

    export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
    

    third step

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

    if curl fail, your need to add nvm host

    • open hosts
    sudo vim /etc/hosts
    
    • append
    199.232.96.133 raw.githubusercontent.com
    

    reference

    相关文章

      网友评论

          本文标题:Linux or MacOS nvm 安装

          本文链接:https://www.haomeiwen.com/subject/ktqgaktx.html