To update all dependencies in a package.json to their latest versions.. can install this globally first(just once):
|
1 |
npm install -g npm-check-updates |
and then run below which will update the versions of each dependency to the latest
|
1 |
ncu -u |
finally run below to update all of the scripts to their latest. Note, this could be code breaking depending on version updates for your dependencies.
|
1 |
npm install |