Skip to content

[BUG] Packages from private repository added with version '*' #2934

@Lehks

Description

@Lehks

Current Behavior:

The packages are beeing added to the dependencies in package.json's with the version *.

This worked in npm version 7.6.3. Also, my Nexus Version is not the latest (OSS 3.17.0-01), so I do not expect it to support the latest npm features. However, I would still consider this a bug in npm, since it worked in the previous version and a minor version update should not break backwards-compatiblity (according to SemVer).

Expected Behavior:

The packages should be added with a concrete version e.g. ^1.0.0.

Steps To Reproduce:

  • npm install my-package (my-package is hosted in a private Sonar Nexus)
  • The dependency is now added to package.json with verison *.

Environment:

  • OS: Ubuntu (WSL 2)
  • Node: v14.16.0
  • npm: 7.7.0

Metadata

Metadata

Assignees

Labels

Bugthing that needs fixingPriority 1high priority issueRelease 7.xwork is associated with a specific npm 7 release

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions