Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encountered @polkadot/util-crypto has multiple version error when running entropy --help #179

Open
johnnymatthews opened this issue Jul 16, 2024 · 2 comments
Assignees
Labels
in-release for when something is already fixed in the next release but shouldn't be closed until then

Comments

@johnnymatthews
Copy link
Contributor

Pretty much all in the title. I ran npm install --global @entropyxyz/cli which completed fine. I then ran entropy --help and got this error:

@polkadot/util-crypto has multiple versions, ensure that there is only one installed.
Either remove and explicitly install matching versions or dedupe using your package manager.
The following conflicting packages were found:
        esm 12.6.2      node_modules/@entropyxyz/sdk/dist/
        esm 12.6.2      node_modules/@polkadot/util-crypto/
Usage: entropy [options] [command]

CLI interface for interacting with entropy.xyz. Running without commands starts an interactive ui

Options:
  -e, --endpoint <endpoint>                           Runs entropy with the given endpoint and ignores network endpoints in config. Can also be given a stored endpoint name from config eg: `entropy --endpoint
                                                      test-net`. (default: "ws://testnet.entropy.xyz:9944/", env: ENDPOINT)
  -h, --help                                          display help for command

...

To my knowledge, I haven't personally installed any other Polkadot utilities on my system.

@johnnymatthews
Copy link
Contributor Author

Evidently it happens with other commands too:

$  entropy ls

@polkadot/util-crypto has multiple versions, ensure that there is only one installed.
Either remove and explicitly install matching versions or dedupe using your package manager.
The following conflicting packages were found:
        esm 12.6.2      node_modules/@entropyxyz/sdk/dist/
        esm 12.6.2      node_modules/@polkadot/util-crypto/
[
  {
    "name": "KeyKey5000",
    "address": "5DSUAf2
    
...

@rh0delta
Copy link
Contributor

rh0delta commented Jul 17, 2024

This is due to how we are building and exporting the SDK, we are currently in the process of fixing this with entropyxyz/sdk#400. Should be fixed in the next release of the cli.

@rh0delta rh0delta self-assigned this Jul 17, 2024
@frankiebee frankiebee added the in-release for when something is already fixed in the next release but shouldn't be closed until then label Aug 19, 2024
@frankiebee frankiebee added this to the [next] version 0.1.0 milestone Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in-release for when something is already fixed in the next release but shouldn't be closed until then
Projects
None yet
Development

No branches or pull requests

3 participants