npm i --save-dev update code example
Example: how to update dev dependencies npm
npm update --save-dev
// Alternatively, the same command to save time
npm update -D
npm update --save-dev
// Alternatively, the same command to save time
npm update -D