matter-labs / era-tutorial-examples

[DEPRECATED ]Full examples for tutorials in the zkSync Era documentation. Visit: https://github.com/matter-labs/tutorials
https://github.com/matter-labs/tutorials
MIT License
129 stars 76 forks source link

Yarn install fails with "hardhat@2.9.3: The engine "node" is incompatible with this module" on node version 18! #64

Open mortezashojaei opened 1 year ago

mortezashojaei commented 1 year ago

Hey there I am using the node version v18.13.0, and when I cloned this repository and tried to run yarn install I got this error:

hardhat@2.9.3: The engine "node" is incompatible with this module. Expected version "^12.0.0 || ^14.0.0 || ^16.0.0". Got "18.13.0"

so I think one good solution could be adding a .nvmrc file in the root (as I fixed my problem with switching to node version 16 with the help of nvm)!

mortezashojaei commented 1 year ago

I created a PR to fix this problem with the help of nvm!