Simple use nvm install <node-version> command to install the new version, and type nvm use <node-version> to switch to the new version on linux ubuntu command line or terminal. How to Update Node.js to Version [18, 20, 21 ,22] Ubuntu
Read More How to Update Node.js to Version [18, 20, 21 ,22] Ubuntu Terminal