Following my first tutorial on truffle, zeppelin and ganache (and nothing else).

I am trying truffle migrate. The code compiles, then issues this error:

> Something went wrong while attempting to connect to the network at Check your network configuration.

Could not connect to your Ethereum client with the following parameters:
    - host       >
    - port       > 7545
    - network_id > 5777

truffle-config.js is:

networks: {
    development: {
      host: "",
      port: 8545,
      network_id: "*" // Match any network id


ganache-cli is Listening on

If I am not mistaken it should be trying to connect to port 8545. How can I fix ths?

I have read other questions and tried truffle migrate --reset and receive a similar error.

Thank you.

  • did you try to edit your truffle-config.js to match data from your error message? Changing the from 8545 to 7545 just in case?
    – Sky
    Feb 24, 2022 at 10:56

1 Answer 1


I think you have not installed ganache. Try installing it in the system.


npm install -g ganache-cli

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.