hardhat-ethernal: 0.8.1 install error: Could not resolve dependency @nomiclabs/hardhat-ethers@"npm:hardhat-deploy-ethers@^0.3.0-beta.10"
Console log:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: hardhat-project@undefined
npm ERR! Found: @nomiclabs/hardhat-ethers@2.0.5
npm ERR! node_modules/@nomiclabs/hardhat-ethers
npm ERR! dev @nomiclabs/hardhat-ethers@"^2.0.5" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @nomiclabs/hardhat-ethers@"npm:hardhat-deploy-ethers@^0.3.0-beta.10" from hardhat-ethernal@0.8.1
npm ERR! node_modules/hardhat-ethernal
npm ERR! dev hardhat-ethernal@"^0.8.1" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
package.json:
{
"name": "hardhat-project",
"devDependencies": {
"@nomiclabs/hardhat-ethers": "^2.0.5",
"@nomiclabs/hardhat-waffle": "^2.0.3",
"chai": "^4.3.6",
"dotenv": "^16.0.0",
"ethereum-waffle": "^3.4.0",
"ethers": "^5.5.4",
"hardhat": "^2.9.0",
"hardhat-contract-sizer": "^2.5.0",
"hardhat-gas-reporter": "^1.0.8",
"hardhat-ethernal": "^0.8.1"
},
"dependencies": {
"@openzeppelin/contracts": "^4.5.0"
}
}
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 3
- Comments: 22 (9 by maintainers)
Closing this for now, feel free to comment/reopen if the problem is still here.
I’ve pushed a new version: 3.2.3 that should fix the issue. Please, let me know if that works
Thanks for the ping! I started to work on it. Packages upgrade seem to be more complex than what I thought though
Same issue with
hardhat@2.12.1, i dont want to use forceI installed with
npm install --legacy-peer-depsand got it to work. Probably not ideal, but should work until things are resolved.I faced the same error and I fixed installing: “@nomiclabs/hardhat-ethers”: “npm:hardhat-deploy-ethers@^0.3.0-beta.13”. If you are working using Linux (like me), you can get another error (not on MacOS) about keytar. In that case you need to run: sudo apt-get install libsecret-1-dev. Then, if you run npm i (with hardhat-ethernal 0.8.1), it works.
Are you using npm or yarn?
If npm, can you run
npm install --force?