raineorshine / npm-check-updates

Find newer versions of package dependencies than what your package.json allows
Other
9.37k stars 324 forks source link

ncu --doctor show the help #1412

Open ejgutierrez74 opened 4 months ago

ejgutierrez74 commented 4 months ago

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

raineorshine commented 4 months ago

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.

ejgutierrez74 commented 4 months ago

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

raineorshine commented 4 months ago

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)