Truffle won't link w Ganache

Could somebody please tell me why I’m getting this error message in the console? I was trying to start my own project for practice when I ran into some trouble. Within the Powershell, if I stay in the main project folder and try “truffle migrate –reset” then the contracts are compiled and deployed. If I try “migrate –reset” after I’ve entered “truffle console” then it tells me it can’t connect to network “ganache”. I get the same if I type “test”. The Hostname, Port Number, & Network ID on my config file and the Ganache GUI all match each other. Why won’t Truffle connect to Ganache?

1 Like

Hello sir, I have moved your topic to the proper category, so the community can reach your questions easily.

Also, could you share your truffle-config.js file?

If you have any more questions, please let us know so we can help you! :slightly_smiling_face:

Carlos Z.


@thecil Yep! Here’s the Github repo for the project.