Skip to content

[BUG] npm install <git_repo#commit-hash> fails #2919

@flash-me

Description

@flash-me

Current Behavior:

⚠This works with npm 6⚠

We have an internal bitbucket repository, let say at https://my.bb.intern.
One dependency is installed via git url, so in the package.json the entry says

"@bla/foo": "git+https://my.bb.intern/.....#1384"

We tried to install a new commit hash with

npm i -D "git+https://my.bb.intern/.....#2223"

which fails with npm 7.6.3, but works with npm 6.x

Expected Behavior:

Same behaviour like in npm 6.

Environment:

OS: Windows 10
Node: 14.15.3
npm 7.6.3
Git for Windows: 2.31.0.1

Here is one log

image

Weird behaviour

The git repo of the dependency has been cloned into the current working dir
image

cheers
flash ⚡

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingRelease 7.xwork is associated with a specific npm 7 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions