Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Amani-noui opened this issue May 16, 2024 · 2 comments

Comments

@Amani-noui
Copy link

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)
@Secret1007
Copy link

image
Here are some tips: maybe you should run npx hardhat node first.

@hr188
Copy link

hr188 commented Sep 25, 2024

Can you help me run this project ?

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

No branches or pull requests

3 participants