npm updates code example
Example 1: update npm
// update npm//
npm install -g npm@latest
Example 2: npm check updates
> npx npm-check-updates -u
Example 3: update npm
npm install -g npm
Example 4: npm update specific package
npm update browser-sync
-------
yarn upgrade browser-sync