raineorshine/npm-check-updates

ncu --doctor show the help

ejgutierrez74 opened this issue · 3 comments

Title is self explanatory, ncu --doctor shows help

Steps:

Current Behavior

imagen

Actually shows the help of ncu:

imagen

Something similar to:

imagen

Linux Ubuntu 22.04 latest updates
React 18.3.0
Vite 5.2.11

ncu --doctor is intended to show the help. The -u modifier is required to write upgrades in doctor mode, just as ncu -u is required to write upgrades normally.

As i understand, sorry my bad english from your documentation:

imagen

So to use i have to run:
ncu --doctor

similar to simulate what would happen...and then ncu --doctor -u to REALLy install/upgrades marked or tested without any problems...

Thanks

Yes, I could see how that could be confusing. I've modified the documentation as follows:

Usage:

ncu --doctor -u
ncu --no-doctor
ncu -du

Iteratively installs upgrades and runs your project's tests to identify breaking upgrades. Reverts broken upgrades and updates package.json with working upgrades.

Requires -u to execute (modifies your package file, lock file, and node_modules)