美文网首页
centos7安装nvm

centos7安装nvm

作者: wowshiwoniu | 来源:发表于2021-07-28 14:35 被阅读0次

    安装nvm

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

    输出

    => Downloading nvm from git to '/root/.nvm'
    => 正克隆到 '/root/.nvm'...
    remote: Enumerating objects: 333, done.
    remote: Counting objects: 100% (333/333), done.
    remote: Compressing objects: 100% (283/283), done.
    remote: Total 333 (delta 38), reused 150 (delta 25), pack-reused 0
    接收对象中: 100% (333/333), 177.15 KiB | 182.00 KiB/s, done.
    处理 delta 中: 100% (38/38), done.
    => Compressing and cleaning up git repository
    
    => Appending nvm source string to /root/.bashrc
    => Appending bash_completion source string to /root/.bashrc
    => Close and reopen your terminal to start using nvm or run the following to use it now:
    
    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
    

    执行命令查看版本

    [root@master ~]# nvm -v
    -bash: nvm: 未找到命令
    

    执行source命令生效

    source ~/.bashrc
    

    在此查看

    [root@master ~]# nvm -v
    0.35.3
    

    相关文章

      网友评论

          本文标题:centos7安装nvm

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