07-21-2023, 09:08 AM
i found the answer onhttps://nodejs.dev/learn/update-all-the-nodejs-dependencies-to-their-latest-version and this is working for me for all the major release as well
npm install -g npm-check-updates
ncu -u
npm update
to check the outdated package use
npm outdated
npm install -g npm-check-updates
ncu -u
npm update
to check the outdated package use
npm outdated