Skip to content

random-base-uniform 0.2.0 depends on random-base 0.1.1, causing installation of duplicate versions of dependencies #1342

Closed
@ellis

Description

@ellis

Description

I installed the following two packages, @stdlib/random-base-uniform and @stdlib/stats-base-dists-binomial-pmf, and ended up with both v0.2 and v0.1 versions of most dependencies.

My first guess is that package.json has the wrong version number in the dependencies of random-base:

"@stdlib/random-base": "^0.1.1",

Related Issues

Related issues #1199

Questions

No response

Demo

No response

Reproduction

I installed the following two packages:


pnpm add @stdlib/random-base-uniform @stdlib/stats-base-dists-binomial-pmf

Expected Results

v0.2 packages installed, rather than both v0.2 and v0.2

Actual Results

This results in the installation of lots of duplicates packages, e.g., here's a tiny excerpt from node_modules:


node_modules/.pnpm/@stdlib+math-base-special-sinpi@0.1.0
node_modules/.pnpm/@stdlib+math-base-special-sinpi@0.2.0
node_modules/.pnpm/@stdlib+math-base-special-sqrt@0.1.1
node_modules/.pnpm/@stdlib+math-base-special-sqrt@0.2.0
node_modules/.pnpm/@stdlib+math-base-special-tan@0.1.0
node_modules/.pnpm/@stdlib+math-base-special-trunc@0.1.1
node_modules/.pnpm/@stdlib+math-base-special-trunc@0.2.0


### Version

0.2.0

### Environments

Node.js

### Browser Version

_No response_

### Node.js / npm Version

v20.11.0

### Platform

Linux

### Checklist

- [X] Read and understood the [Code of Conduct](https://github.com/stdlib-js/stdlib/blob/develop/CODE_OF_CONDUCT.md).
- [X] Searched for existing issues and pull requests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions