CentOS安装node yarn

CentOS安装node yarn

1、卸载老版本

yum remove nodejs npm -y

2、安装node

curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash -
sudo yum -y install nodejs
node -v

3、安装yarn

curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
sudo yum install yarn
yarn -v
发布了38 篇原创文章 · 获赞 32 · 访问量 626

猜你喜欢

转载自blog.csdn.net/Asia1752/article/details/103364246