upgrade node.js version project command line code example Example 1: upgrade node version nvm install v12.16.2 Example 2: update nodejs version npm cache clean -f