apt update node version code example Example 1: update npm version ubuntu npm install -g npm Example 2: update npm ubuntu update npm ubuntu