update npm global version code example
Example: update global package npm
# you can check which packages are outdated by running
npm outdated -g
# then you can update al of them or a specific one
npm update -g # all
npm update -g <package-name> # specific one