纱线添加安装多个版本,[如何]确保只安装了一个版本?
@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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅此处: 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.