Skip to content

[DOCS] Details for package-lock.json dependencies version field missing #4796

@nhumblot

Description

@nhumblot

Is there an existing issue for this?

  • I have searched the existing issues

This is a CLI Docs Problem, not another kind of Docs Problem.

  • This is a CLI Docs Problem.

Description of Problem

Issue raised following the opening of jeremylong/DependencyCheck#4293.

The generated package-lock.json file has a Dependency object without specifying a version field:

    "node_modules/jest-resolve": {
      "dev": true,
      "optional": true,
      "peer": true
    },

This behavior is not specified in the documentation of the cli, which implies a version field is always present and set.

Dependency objects have the following fields:

How such dependencies should be considered?

Potential Solution

Detailing cases where a version is not specified for a dependency

Affected URL

https://docs.npmjs.com/cli/v8/configuring-npm/package-lock-json#dependencies

Metadata

Metadata

Assignees

No one assigned

    Labels

    Documentationdocumentation related issueNeeds Triageneeds review for next steps

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions