Simple question to package update

I created a new test app and I see in the package tree a lot of new package versions, but they are not updated when I use the commands npm update or ng update. I know that I can update these packages manually by clicking on it and choosing Upgrade in the popup window. The problem is here that it can result in dependency conflict when choosing the “wrong order”. Isnt it possible to just update all the packages with one command without getting dependency conflicts?


   NodeJS : v18.14.0 (C:\Program Files\nodejs\node.exe)
   npm    : 9.3.1
   OS     : Windows 10

PS E:\ionic-workspace\testapp> npm update

added 5 packages, removed 6 packages, changed 5 packages, and audited 1135 packages in 19s

160 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
PS E:\ionic-workspace\testapp> ng update
Using package manager: npm
Collecting installed dependencies...
Found 46 dependencies.
    We analyzed your package.json and everything seems to be in order. Good work!
PS E:\ionic-workspace\testapp> 

Install, run, update…

npm install -g npm-check-updates

After run the command to see update dependencies

npm run ncu


To update all dependencies run this command…

npm run ncu -u && npm i

But use carefully, he can crash your development! Some dependencies change your script

see more in the oficial npm, link bellow…

1 Like