upgrade node via terminal code example Example 1: upgrade node version nvm install v12.16.2 Example 2: linux command to update nodejs sudo apt-get install xz-utils