Issue
How to change the default Node.js version from 10 to the latest version (22).
Environment
- NodeJS
Solution
To update the system-wide default Node.js version, you should run:
dnf module reset nodejs -y
dnf module enable nodejs:22 -y
yum update nodejs
After updating, to ensure the changes are applied within CageFS for all users, execute:
cagefsctl --force-update
Comments
0 comments
Please sign in to leave a comment.