Skip to content

[BUG] npm 11.4.1 unable to install packages from git repo #8331

Closed
@animechitransh

Description

@animechitransh

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

When there is dependency being installed from git repo(git+ssh), npm latest (v11.4.1) is not downloading the dependency.
The lock file also does not show the dependency being downloaded.
Please note that the dependency does get downloaded and installed properly in v11.2.0

Possible problematic commit: https://github.com/npm/cli/pull/8312/files

Image

Expected Behavior

Packages from git+ssh should get installed properly

Steps To Reproduce

  1. Create a problematic package.json file with packages from git
  2. npm i --verbose
  3. npm throws error

npm warn reify invalid or damaged lockfile detected
npm warn reify please re-try this operation once it completes
npm warn reify so that the damage can be corrected, or perform
npm warn reify a fresh install with no lockfile if the problem persists.
npm verbose reify unrecognized node in tree /home/jenkins/workspace/xxx/yyyy/zzzz/node_modules/my-private-package

Environment

  • npm: 11.4.1
  • Node.js: 20.19.2
  • OS Name: Ubuntu:20:04
  • System Model Name: EC2 instance
  • npm config:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingPriority 2secondary priority issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions