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