How to update dev dependencies in NPM?
Categorized as Misc
If you have installed new Node.js packages and want to update your package.json file locally to these new versions, you have to install npm-check-updates
package globally:
sudo npm install -g npm-check-updates
Then you have to run this command:
ncu -u
As a result, you will see the following screen (the list of packages is only for example):

The final step is to run:
npm install
The official documentation on this topic is here – https://nodejs.dev/learn/update-all-the-nodejs-dependencies-to-their-latest-version