Eric Guo's blog.cloud-mes.com

Hoping writing JS, Ruby & Rails and Go article, but fallback to DevOps note

Downgrade Node 18 to 16 in Rocky Linux

Permalink

When start developing open project, I found it only support Node.js 16 and confirm Node.js 18 not working currently, so I need downgrade the node version in a Rocky Linux server to build a staging environment and here is how:

Uninstall node 18

dnf remove nodejs
cd /etc/yum.repos.d/
rm nodesource-el8.repo
yum update

Install node 16

curl -fsSL https://rpm.nodesource.com/setup_16.x | bash -
dnf install -y nodejs
node --version
dnf install -y yarn

Comments