最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Failed Updating Node.js Version on RHEL linux - Stack Overflow

programmeradmin3浏览0评论

I want to update Node.js from version 18.x to 20.x on RHEL linux using dnf using this bash script.

#!/bin/bash

dnf module list
dnf module reset nodejs -y
dnf module enable nodejs:20 -y
dnf install nodejs -y

But after running that bash script, the version is still at 18.x even after restarting the session. Any command I missed from the bash script? Should I remove the nodejs first before installing the newer version? Thank you in advance.

发布评论

评论列表(0)

  1. 暂无评论