-
Notifications
You must be signed in to change notification settings - Fork 350
Open
Description
When attempting to clone the repository as stated in the docs and run yarn install, I encountered an error related to the compatibility of the Hardhat version specified in the project. The error message reads:
error hardhat@2.10.2: The engine "node" is incompatible with this module. Expected version "^14.0.0 || ^16.0.0 || ^18.0.0". Got "21.4.0"Upon investigation, it seems that the Hardhat version specified in the package.json file does not support Node.js version 21. It would be beneficial to update the required Hardhat version to ensure compatibility with the latest Node.js releases.
Proposed Solution (Fix!):
- Upgrade the Hardhat version in
package.jsonto one that supports Node.js 21, for example, Hardhat 2.22.3 works.
Steps to Reproduce:
git clone https://github.com/scroll-tech/scroll-guides.gitcd scroll-guides/contract-deploy-demoyarn install- Observe the error related to Hardhat version and Node.js compatibility.
Additional Information:
- Node.js version used: 21.4.0
- Hardhat version specified in package.json: 2.10.2
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels