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.json to one that supports Node.js 21, for example, Hardhat 2.22.3 works.
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: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!):
package.json
to 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.git
cd scroll-guides/contract-deploy-demo
yarn install
Additional Information: