update npm to latest version ubuntu code example Example 1: update npm version ubuntu npm install -g npm Example 2: update npm ubuntu update npm ubuntu