Skip to Content
DocsutooCommandsdeps

deps

Generate package-lock.json without installing packages.

Alias: d

Usage

Terminal
ut deps [OPTIONS]

Examples

Terminal
# Generate lock file ut deps ut d # With specific registry ut deps --registry https://registry.npmmirror.com

Options

OptionDescription
--registry <url>Override npm registry
--legacy-peer-depsLegacy peer dependency handling

Use Cases

  • Generate lock file for CI/CD without full installation
  • Update dependency resolution without modifying node_modules
  • Pre-compute dependency tree before installation
Last updated on