Skip to content

Conversation

0xBitzz
Copy link

@0xBitzz 0xBitzz commented May 29, 2024

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 [email protected]: 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.

Additional Information:

  • Node.js version used: 21.4.0
  • Hardhat version specified in package.json: 2.10.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant