Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

139
Views
Chainlink Hackathon 21 Hardhat problem deploying node

tried running npx hardhat node

this is the error I got

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

For more info go to https://hardhat.org/HH604 or run Hardhat with --show-stack-traces

here is my config file.

require('dotenv').config();
require("@nomiclabs/hardhat-ethers");

const KOVAN_RPC_URL = process.env.KOVAN_RPC_URL;
const PRIVATE_KEY = process.env.PRIVATE_KEY;

module.exports = {
  defaultNetwork: "hardhat",
  networks: {
    hardhat: {
    },
    kovan: {
      url: KOVAN_RPC_URL,
      accounts: [PRIVATE_KEY]
    }
  },
  solidity: {
    version: "0.8.0",
    settings: {
      optimizer: {
        enabled: true,
        runs: 200
      }
    }
  },
  paths: {
    sources: "./contracts",
    tests: "./test",
    cache: "./cache",
    artifacts: "./artifacts"
  },
  mocha: {
    timeout: 20000
  }
}

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

To solve this, you need to update your package.json with export SET NODE_OPTIONS=--openssl-legacy-provider

  "scripts": {
    "start": "export SET NODE_OPTIONS=--openssl-legacy-provider && npx hardhat node"
  },

Then, you can just run yarn start or export SET NODE_OPTIONS=--openssl-legacy-provider && npx hardhat node

https://github.com/webpack/webpack/issues/14532#issuecomment-951378874

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!