hardhat
hardhat copied to clipboard
Update @ethersproject dependency versions
Was getting an error when running the command from:
You need to install these dependencies to run the sample project: npm install --save-dev "hardhat@^2.9.9" "@nomicfoundation/hardhat-toolbox@^1.0.1" "@nomicfoundation/hardhat-network-helpers@^1.0.0" "@nomicfoundation/hardhat-chai-matchers@^1.0.0" "@nomiclabs/hardhat-ethers@^2.0.0" "@nomiclabs/hardhat-etherscan@^3.0.0" "chai@^4.2.0" "ethers@^5.4.7" "hardhat-gas-reporter@^1.0.8" "solidity-coverage@^0.7.21" "@typechain/hardhat@^6.1.2" "typechain@^8.1.0" "@typechain/ethers-v5@^10.1.0" "@ethersproject/abi@^5.4.7" "@ethersproject/providers@^5.4.7"
npm ERR! code ETARGET npm ERR! notarget No matching version found for @ethersproject/[email protected]. npm ERR! notarget In most cases you or one of your dependencies are requesting npm ERR! notarget a package version that doesn't exist.
Have updated @ethersproject/abi and @ethersproject/providers to the latest versions.
⚠️ No Changeset found
Latest commit: d84c2b01788e61bd5b3c5a3d2bb60fd3ee74274b
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated |
---|---|---|---|
hardhat | ✅ Ready (Inspect) | Visit Preview | Aug 14, 2022 at 8:06AM (UTC) |
hardhat-storybook | ✅ Ready (Inspect) | Visit Preview | Aug 14, 2022 at 8:06AM (UTC) |
This issue is also being tracked on Linear.
We use Linear to manage our development process, but we keep the conversations on Github.
LINEAR-ID: 2940c7e8-d840-4ff0-a40f-f870f370178a
You were getting a really odd error. Can you describe the situation that lead to it? Just installing? Can you describe your system?
You were getting a really odd error. Can you describe the situation that lead to it? Just installing? Can you describe your system?
It's trying to install a dependency with a version number that doesn't exist. See link below for details. Just needed to update the text it prints out to the latest versions for both @ethersproject dependencies.
https://www.npmjs.com/package/@ethersproject/abi?activeTab=versions
This seems to be the same problem mentioned in https://github.com/NomicFoundation/hardhat/pull/2943, but I couldn't reproduce it (maybe the dependencies were indeed wrong, but those versions have been published since then).
Anyway, as I said there, please open an issue if you are still running into this.