Error : Could not connect to your Ethereum client with the following parameters:

by Trey   Last Updated May 15, 2019 13:28 PM

Im creating my dapp with following below tutorial. http://www.dappuniversity.com/articles/the-ultimate-ethereum-dapp-tutorial

however Im facing an error when I run

truffle console

it shows

>truffle console

Could not connect to your Ethereum client with the following parameters:
    - host       > 127.0.0.1
    - port       > 7545
    - network_id > *
Please check that your Ethereum client:
    - is running
    - is accepting RPC connections (i.e., "--rpc" option is used in geth)
    - is accessible over the network
    - is properly configured in your Truffle configuration file (truffle-config.js)

Truffle v5.0.17 (core: 5.0.16)
Node v10.15.3

I have tried

truffle init

but my command prompt got stacked after it showed

>truffle init

This directory is non-empty...
? Proceed anyway? Yes
- Preparing to download

can anyone please advise me what I should change in this case.

FYI the code inside truffle-config.js is

module.exports = {
  networks: {
    development: {
      host: 127.0.0.1,
      port: 7574,
      network_id: "*" // Match any network id
    }
  }
};

Thank you

Tags : truffle


Related Questions


Updated March 12, 2018 22:28 PM

Updated April 04, 2019 06:28 AM

Updated March 30, 2018 08:28 AM

Updated April 02, 2018 17:28 PM

Updated April 05, 2018 17:28 PM