why npm install checks for existing packages update code example
Example 1: npm check updates
> npx npm-check-updates -u
Example 2: npm update specific package
npm update browser-sync
-------
yarn upgrade browser-sync
> npx npm-check-updates -u
npm update browser-sync
-------
yarn upgrade browser-sync