Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ncu --doctor show the help #1412

Open
ejgutierrez74 opened this issue May 20, 2024 · 3 comments
Open

ncu --doctor show the help #1412

ejgutierrez74 opened this issue May 20, 2024 · 3 comments
Labels

Comments

@ejgutierrez74
Copy link

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

raineorshine commented May 20, 2024

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)

raineorshine added a commit that referenced this issue May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants