# 此处 setup_12.x 部分可自己替换,需要什么版本就把数字改成什么版本
curl -sL https://rpm.nodesource.com/setup_12.x | bash
yum install nodejs-12.16.1
yum install gcc-c++ make
curl -sL https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
yum install yarn
centos7 通过 Yum 安装 NodeJS & NPM & Yarn
最新推荐文章于 2024-01-15 17:13:58 发布