BASE

npm-check-updates

npm-check-updates

Build / code quality tool · Free

Compares package.json with available package versions and prepares dependency-range updates for subsequent project checks.

Also known as: raineorshine/npm-check-updates; ncu

Resource illustration: npm-check-updates

Open resource ↗

What you can use for free

Code and local use under Apache-2.0.

Paid features and costs

Computing resources, self-hosting, and external services are paid for separately if used.

Access and limitations

Code and local use under Apache-2.0. Computing resources, self-hosting, and external services are paid for separately if used.

Use cases

  • Prepare a controlled dependency update
  • Choose ranges to update and check project changes with tests

Example workflow

A possible workflow; this is not a report of hands-on testing.

Prepare a controlled dependency update.

Before you start

  • A repository, package manifests, and configuration.
  • A compatible runtime and the target build command.

Steps

  1. Compare current package ranges with available versions.
  2. Choose ranges to update and check project changes with tests.
  3. Add the workflow to scripts or CI with a clear report.

Check your result

  • A clean copy of the project reproduces the result.
  • Errors produce a nonzero exit code and clear diagnostics.

Choosing npm-check-updates

Prepare a controlled dependency update

Choose this when

  • Prepare a controlled dependency update
  • Choose ranges to update and check project changes with tests

Requirements

  • Check the chosen ncu version's engines; save package.json in version control before using -u.

Things to consider

  • Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.
  • Terms of use: Apache-2.0 for the code; third-party components retain their own terms.
  • The newest version may be outside the previous major range. A successful manifest update does not prove application compatibility; doctor depends on the tests actually run.

Frequently asked questions

What can you use for free in npm-check-updates?

Code and local use under Apache-2.0.

What additional costs might arise with npm-check-updates?

Computing resources, self-hosting, and external services are paid for separately if used.

What terms of use matter for npm-check-updates?

Apache-2.0 for the code; third-party components retain their own terms.

How do you get started with npm-check-updates?

Compare current package ranges with available versions. Choose ranges to update and check project changes with tests. Add the workflow to scripts or CI with a clear report.

How does ncu differ from installing new dependencies?

Normal ncu displays updates; ncu -u changes package.json while retaining range operators such as ^. The package manager then updates installed packages and the lockfile. There is interactive selection, target restrictions, and doctor, which installs changes and runs tests to identify incompatible updates.

License

Apache-2.0 for the code; third-party components retain their own terms.

Apache 2.0 — permissive license with patent terms

You can use and modify the code in commercial and closed-source projects. When distributing it, retain the license and relevant notices, identify modified files, and include NOTICE if provided. Authors grant a limited patent license for their contributions; it does not grant permission to use trademarks.

License terms

Technologies and topics

  • npm-check-updates
  • build
  • Development

Sources

Other resources