Connect Ganache to local truffle-config.js, present on D drive

Link Truffle projects to this workspace by adding their truffle-config.js or truffle.js file to this workspace.

Unknown network “ganache”. See your Truffle configuration file for available networks.

:frowning:

usually it should work, did you add ganache in your truffle config?

how to delete the question :smile:

You don’t have to delete it, maybe it will help someone else in the future too

on truffle.config.js uncomment network and put Ganache network Port details
e.g. truffle.config.js > module exports > networks >> put Ganache network details which looks like this:-

networks{
development: {
host: “127.0.0.1”,// Localhost (default: none)
port: 7545, // Standard Ethereum port (default: none)
network_id: “5777”, // Any network (default: none)
},
}

it looks like this is also what I have in my truffle config:

      development: {
       host: "127.0.0.1",     // Localhost (default: none)
       port: 7545,            // Standard Ethereum port (default: none)
       network_id: "5777",       // Any network (default: none)
      },

when i truffle init, those networks are on comments
my mistake my mistake .