纱线添加安装多个版本,[如何]确保只安装了一个版本?

发布于 2025-01-20 08:17:17 字数 8718 浏览 4 评论 0原文

我正在尝试运行这个教程有关包裹相互冲突的警告(请参见下文)。当我运行纱线dedupe时,我会收到一个令人沮丧的消息错误dedupe命令不需要。 YARN INSTALL将已经删除。首先,yard install已被YARN ADD替换为,第二,如果YARN自动删除,我如何有很多重复包装?有人可以告诉这个新手如何修复这些重复的软件包吗?我是否必须通过文件夹手动转到文件夹并删除它们?

@polkadot/util 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:
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@polkadot\api-augment\node_modules\@polkadot\util
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@polkadot\rpc-augment\node_modules\@polkadot\util
@polkadot/util 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:
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@polkadot\api-augment\node_modules\@polkadot\util
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@polkadot\rpc-augment\node_modules\@polkadot\util
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@polkadot\types-augment\node_modules\@polkadot\util
@polkadot/util 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:
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@polkadot\api-augment\node_modules\@polkadot\util
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@polkadot\rpc-augment\node_modules\@polkadot\util
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@polkadot\types-augment\node_modules\@polkadot\util
        cjs 8.4.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-transactions\node_modules\@polkadot\util
@polkadot/util 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:
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@polkadot\api-augment\node_modules\@polkadot\util
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@polkadot\rpc-augment\node_modules\@polkadot\util
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@polkadot\types-augment\node_modules\@polkadot\util
        cjs 8.4.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-transactions\node_modules\@polkadot\util
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@polkadot\util
@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:
        cjs 8.4.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-transactions\node_modules\@polkadot\util-crypto
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@polkadot\util-crypto
@polkadot/wasm-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:
        cjs 4.6.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-transactions\node_modules\@polkadot\wasm-crypto
        cjs 5.1.1       D:\acala_hardhat\hello-world\node_modules\@polkadot\util-crypto\node_modules\@polkadot\wasm-crypto
@polkadot/util 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:
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@polkadot\api-augment\node_modules\@polkadot\util
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@polkadot\rpc-augment\node_modules\@polkadot\util
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@polkadot\types-augment\node_modules\@polkadot\util
        cjs 8.4.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-transactions\node_modules\@polkadot\util
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@polkadot\util
        cjs 8.4.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@polkadot\util
@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:
        cjs 8.4.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-transactions\node_modules\@polkadot\util-crypto
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@polkadot\util-crypto
        cjs 8.4.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@polkadot\util-crypto
@polkadot/wasm-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:
        cjs 4.6.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-transactions\node_modules\@polkadot\wasm-crypto
        cjs 5.1.1       D:\acala_hardhat\hello-world\node_modules\@polkadot\util-crypto\node_modules\@polkadot\wasm-crypto
        cjs 4.6.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@polkadot\wasm-crypto
@polkadot/util 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:
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@polkadot\api-augment\node_modules\@polkadot\util
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@polkadot\rpc-augment\node_modules\@polkadot\util
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@polkadot\types-augment\node_modules\@polkadot\util
        cjs 8.4.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-transactions\node_modules\@polkadot\util
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@polkadot\util
        cjs 8.4.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@polkadot\util
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@open-web3\orml-api-derive\node_modules\@polkadot\util
@polkadot/rpc-core 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:
        cjs 7.11.1      D:\acala_hardhat\hello-world\node_modules\@polkadot\api-derive\node_modules\@polkadot\rpc-core
        cjs 7.15.1      D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@open-web3\orml-api-derive\node_modules\@polkadot\rpc-core
@polkadot/types 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:
        cjs 7.11.1      D:\acala_hardhat\hello-world\node_modules\@polkadot\api-derive\node_modules\@polkadot\types
        cjs 7.15.1      D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@open-web3\orml-api-derive\node_modules\@polkadot\types

I am trying to run this tutorial and I am getting a slew of warnings about conflicting packages (please see below). When I run yarn dedupe I get a frustrating message error The dedupe command isn't necessary. yarn install will already dedupe. First of all yard install has been replaced with yarn add and second, if yarn is automatically deduping, how come I have so many duplicate packages? Can someone please tell this newbie how to fix these duplicate packages? Do I have to manually go folder by folder and delete them?

@polkadot/util 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:
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@polkadot\api-augment\node_modules\@polkadot\util
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@polkadot\rpc-augment\node_modules\@polkadot\util
@polkadot/util 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:
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@polkadot\api-augment\node_modules\@polkadot\util
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@polkadot\rpc-augment\node_modules\@polkadot\util
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@polkadot\types-augment\node_modules\@polkadot\util
@polkadot/util 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:
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@polkadot\api-augment\node_modules\@polkadot\util
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@polkadot\rpc-augment\node_modules\@polkadot\util
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@polkadot\types-augment\node_modules\@polkadot\util
        cjs 8.4.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-transactions\node_modules\@polkadot\util
@polkadot/util 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:
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@polkadot\api-augment\node_modules\@polkadot\util
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@polkadot\rpc-augment\node_modules\@polkadot\util
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@polkadot\types-augment\node_modules\@polkadot\util
        cjs 8.4.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-transactions\node_modules\@polkadot\util
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@polkadot\util
@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:
        cjs 8.4.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-transactions\node_modules\@polkadot\util-crypto
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@polkadot\util-crypto
@polkadot/wasm-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:
        cjs 4.6.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-transactions\node_modules\@polkadot\wasm-crypto
        cjs 5.1.1       D:\acala_hardhat\hello-world\node_modules\@polkadot\util-crypto\node_modules\@polkadot\wasm-crypto
@polkadot/util 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:
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@polkadot\api-augment\node_modules\@polkadot\util
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@polkadot\rpc-augment\node_modules\@polkadot\util
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@polkadot\types-augment\node_modules\@polkadot\util
        cjs 8.4.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-transactions\node_modules\@polkadot\util
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@polkadot\util
        cjs 8.4.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@polkadot\util
@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:
        cjs 8.4.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-transactions\node_modules\@polkadot\util-crypto
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@polkadot\util-crypto
        cjs 8.4.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@polkadot\util-crypto
@polkadot/wasm-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:
        cjs 4.6.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-transactions\node_modules\@polkadot\wasm-crypto
        cjs 5.1.1       D:\acala_hardhat\hello-world\node_modules\@polkadot\util-crypto\node_modules\@polkadot\wasm-crypto
        cjs 4.6.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@polkadot\wasm-crypto
@polkadot/util 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:
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@polkadot\api-augment\node_modules\@polkadot\util
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@polkadot\rpc-augment\node_modules\@polkadot\util
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@polkadot\types-augment\node_modules\@polkadot\util
        cjs 8.4.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-transactions\node_modules\@polkadot\util
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@polkadot\util
        cjs 8.4.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@polkadot\util
        cjs 8.7.1       D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@open-web3\orml-api-derive\node_modules\@polkadot\util
@polkadot/rpc-core 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:
        cjs 7.11.1      D:\acala_hardhat\hello-world\node_modules\@polkadot\api-derive\node_modules\@polkadot\rpc-core
        cjs 7.15.1      D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@open-web3\orml-api-derive\node_modules\@polkadot\rpc-core
@polkadot/types 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:
        cjs 7.11.1      D:\acala_hardhat\hello-world\node_modules\@polkadot\api-derive\node_modules\@polkadot\types
        cjs 7.15.1      D:\acala_hardhat\hello-world\node_modules\@acala-network\eth-providers\node_modules\@open-web3\orml-api-derive\node_modules\@polkadot\types

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

韬韬不绝 2025-01-27 08:17:17

请参阅此处: https:// .stackexchange.com/Question/2399/how-to-to-to-remove-duplicate-modules and-missismatched-version-numbers-ie

将您的polkadot分辨率设置为与 polkadot应用程序,您应该很好。这就是他们当前设置的:

注意:我还必须更改依赖项以匹配这些版本,但是现在,控制台更加干净。

See here: https://substrate.stackexchange.com/questions/2399/how-to-prevent-remove-duplicate-modules-and-mismatched-version-numbers-i-e

Set your polkadot resolutions to the same values as polkadot apps and you should be good to go. This is what they're currently set to:

Note: I also had to change my dependencies to match those versions, but the console is much cleaner now.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文