How to update npm?

npm update -g

...ought to do it.

sources

see also