To find outdated packages / libraries in a project we need to run the following command if we are using npm + package-lock.json
npm outdated
If our project uses yarn + yarn.lock, then we need to run the following command to find outdated packages / libraries in a project.
yarn outdated