You have 2 options:

1
2
npx npm-check-updates -u
npm install

Option 2 – Older way (Using npm globally)

1
2
3
npm i -g npm-check-updates
ncu -u
npm install