scaffold-eth / scaffold-eth-challenges

Scaffold-Eth 🏗 Challenges repository
https://speedrunethereum.com
652 stars 3.3k forks source link

Error HH604: Error running JSON-RPC server: error:0308010C:digital envelope routines::unsupported #301

Closed ArnaudBand closed 1 year ago

ArnaudBand commented 1 year ago

I get this error after run yarn chain and when i run yarn start

shivamsk commented 1 year ago

@ArnaudBand Got the same issue with node 18 Modified the "chain" in "scripts" of packages/hardhat/package.json to this.

"chain": "export SET NODE_OPTIONS=--openssl-legacy-provider && hardhat node --network hardhat --no-deploy" This should resolve it.

route-2 commented 1 year ago

nvm install 16 nvm use 16 should work!

ArnaudBand commented 1 year ago

"chain": "export SET NODE_OPTIONS=--openssl-legacy-provider && hardhat node --network hardhat --no-deploy"

@ArnaudBand Got the same issue with node 18 Modified the "chain" in "scripts" of packages/hardhat/package.json to this.

"chain": "export SET NODE_OPTIONS=--openssl-legacy-provider && hardhat node --network hardhat --no-deploy" This should resolve it.

Thank you @shivamsk for your response. It helps me to solve that error.