Linux下安装多个版本nodejs并切换使用

w40555 33 0 PDF 2021-01-15 22:01:17

1.安装nodejs管理工具nvm sudo apt install curl git vim curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash 安装nvm后会提示进行下面操作修改环境变量,也可以退出再登陆来跳过下面的三条命令 export NVM_DIR=$HOME/.nvm [ -s $NVM_DIR/nvm.sh ] && \. $NVM_DIR/nvm.sh # This loads nvm [ -s $NVM_DIR/bash_com

用户评论
请输入评论内容
评分:
暂无评论