Skip to content

Update Hardhat Version Requirement to Support Node 21 #13

Description

@0xBitzz

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.

Steps to Reproduce:

  • git clone https://github.com/scroll-tech/scroll-guides.git
  • cd scroll-guides/contract-deploy-demo
  • yarn 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions