npm update --al code example
Example 1: how to update node modules
npm install --global upgrade-node-modules
Example 2: update all dependencies with npm
npm i -g npm-check-updates
ncu -u
npm install
npm install --global upgrade-node-modules
npm i -g npm-check-updates
ncu -u
npm install