npm how to update a package code example
Example 1: update all dependencies npm
npm update //update all local packages
Example 2: npm update to latest
npm i -g npm@latest
Example 3: npm update specific package
npm update browser-sync
-------
yarn upgrade browser-sync
Example 4: npm update syntax
npm outdated