You have 2 options:
Option 1 – Recommended (Using npx
)
Code language: Bash (bash)npx npm-check-updates -u npm install
Option 2 – Older way (Using npm globally
)
Code language: Bash (bash)npm i -g npm-check-updates ncu -u npm install