just run
npx npm-check-updates -u
to update all the packages first
and delete the unnecessary pacakges