gpt4 book ai didi

Change 'ethers' version in specific dependencies(更改特定依赖项中的‘ethers’版本)

转载 作者:bug小助手 更新时间:2023-10-25 19:20:08 24 4
gpt4 key购买 nike



Suppose i run npm ls ethers to get version of ethers in hardhat project, the result is as follow :-

假设我运行npm ls ethers来获取hardhat项目中的esers版本,结果如下:-


├─┬ @nomicfoundation/[email protected]
│ ├─┬ @nomicfoundation/[email protected]
│ │ └── [email protected] deduped
│ ├─┬ @nomicfoundation/[email protected]
│ │ └── [email protected] deduped
│ ├─┬ @typechain/[email protected]
│ │ └── [email protected] deduped
│ ├─┬ @typechain/[email protected]
│ │ └── [email protected] deduped
│ ├── [email protected]
│ └─┬ [email protected]
│ └─┬ [email protected]
│ └── [email protected]
└─┬ [email protected]
├─┬ @nomicfoundation/[email protected]
│ └── [email protected]
└─┬ @nomicfoundation/[email protected]
└── [email protected]

Now i want to change the ethers version in first 5 entities i.e. @nomicfoundation/[email protected], @nomicfoundation/[email protected], @typechain/[email protected], @typechain/[email protected] and [email protected] from [email protected] to [email protected].

现在我想要将前5个实体中的ethers版本从[电子邮件受保护]、@onomicFoundation/[电子邮件受保护]、@tyechain/[电子邮件受保护]、@tyechain/[电子邮件受保护]和[电子邮件受保护]更改为[电子邮件受保护]。


I am trying npm install [email protected] --save-dev, but as ethers itself comes with hardhat-toolbox, doing this way to make changes in 'ethers version' results in version conflicts in terminal.

我正在尝试NPM安装[Email to Protected]--save-dev,但由于ethers本身附带了hardhat-工具箱,所以这样做会导致终端中的版本冲突。


Is there any way we can change the version of ethers in the mentioned 5 entities?

我们有没有办法改变上述5个实体中的乙醚版本?


更多回答
优秀答案推荐

you should go to your package.json file and change the ethers different versions from there and run npm install command

您应该转到您的Package.json文件,从那里更改ethers的不同版本,然后运行npm安装命令


更多回答

Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.

您的答案可以通过其他支持信息来改进。请编辑以添加更多详细信息,如引用或文档,以便其他人可以确认您的答案是正确的。你可以在帮助中心找到更多关于如何写出好答案的信息。

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com