阿里云centos node git 环境搭建
系统依赖更新
yum update -y安装git
yum install git -y安装nvm
git clone https://gitee.com/mirrors/nvm.git ~/.nvm && cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`依次运行,配置NVM的环境变量
echo ". ~/.nvm/nvm.sh" >> /etc/profile
source /etc/profile修改npm镜像源为阿里云镜像
export NVM_NODEJS_ORG_MIRROR=https://npmmirror.com/mirrors/node查看node可用版本,安装node版本lts
nvm list-remote
nvm install 18 --lts
评论
匿名评论
隐私政策
你无需删除空行,直接评论以获取最佳展示效果