Environment Configuration
Before performing the installation, you need to install the dependent components of the required version.
- Install the system dependency.
1 2 3 4
dnf install -y \ --setopt=install_weak_deps=False \ --setopt=tsflags=nodocs \ curl ca-certificates
- Configure the official NodeSource 22.x RPM source and install Node.js.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
arch=$(uname -m) cat > /etc/yum.repos.d/nodesource-nodejs.repo <<EOF [nodesource-nodejs] name=Node.js Packages for Linux RPM based distros - ${arch} baseurl=https://rpm.nodesource.com/pub_22.x/nodistro/nodejs/${arch} priority=9 enabled=1 gpgcheck=1 gpgkey=https://rpm.nodesource.com/gpgkey/ns-operations-public.key module_hotfixes=1 EOF dnf makecache --disablerepo="*" --enablerepo="nodesource-nodejs" dnf install -y \ --setopt=install_weak_deps=False \ --setopt=tsflags=nodocs \ nodejs
- Install pnpm.
1 2 3 4 5
npm install -g pnpm@10.32.1 export PNPM_HOME=/usr/local/share/pnpm mkdir -p ${PNPM_HOME} pnpm config set global-bin-dir ${PNPM_HOME} export PATH=${PNPM_HOME}:${PATH}
Parent topic: Installation Preparations