-gis a globale tag, I recommend install this globally, and if you don't want to use this package gloabbly, take this tag off
npm i -g npm-check-updateThis wil only update the dependencies install in your current
package.jsonpath. If you need to update others such asclientorserversidepackage.jsonyou will need to go to the path of that folder to execute.
ncu -u && npm iYou can separate the command above if you would like to get the update list before install them again.
Uh I see, you want it to be more convenient and you have come this far to get the easy setup that will take care of it all. GRANTED!
-Add the script below to your package.json after you have installed npm-check-update package to your global or local directory.
"scripts":{
"update": "cd client && ncu -u && npm i && cd .. && cd server && ncu -u && npm i &&ncu -u && npm i"
},- Now, simply
npm run updateand sit back, relax, let the freshness flow through you dependencies.