On Linux, updating npm is very straightforward; just execute the following command:
npm install --global npm@latest
This single command will update npm for you.