how to update npm

Shell
npm install -g npmnpm i -g npm-upgradenpm-windows-upgrade --npm-version latest
npm-windows-upgrade --npm-path "C:\nodejs"

Source

Also in Shell: