Skip to content

issue when do : npx hardhat run ./scripts/deploy.js --network localhost #23

@Amani-noui

Description

@Amani-noui

i got this , give me a suggestion , or a solution
PS C:\Users\User\millow> npx hardhat run ./scripts/deploy.js --network localhost
HardhatError: HH108: Cannot connect to the network localhost.
Please make sure your node is running, and check your internet connection and networks config
at HttpProvider._fetchJsonRpcResponse (C:\Users\User\millow\node_modules\hardhat\src\internal\core\providers\http.ts:223:15)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at HttpProvider.request (C:\Users\User\millow\node_modules\hardhat\src\internal\core\providers\http.ts:87:29)
at EthersProviderWrapper.send (C:\Users\User\millow\node_modules@nomiclabs\hardhat-ethers\src\internal\ethers-provider-wrapper.ts:13:20)
at getSigners (C:\Users\User\millow\node_modules@nomiclabs\hardhat-ethers\src\internal\helpers.ts:45:20)
at main (C:\Users\User\millow\scripts\deploy.js:15:46)

Caused by: Error: connect ECONNREFUSED 127.0.0.1:8545
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1606:16)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions