update npm project code example
Example 1: update npm
// update npm//
npm install -g npm@latest
Example 2: npm update
npm install -g npm@latest
Example 3: update all dependencies npm
npm update //update all local packages
Example 4: npm update
npm update --save
Example 5: how to update npm
npm install -g npm
Example 6: npm update specific package
npm update browser-sync
-------
yarn upgrade browser-sync