Truffle migrate network error

0 votes

When I run truffle migrate command, I am getting the following error:

Error: No network specified. Cannot determine current network.

I have compiled with no error. I don't understand why I am getting the error.

Jan 18 in Blockchain by digger
• 27,640 points
33 views

1 answer to this question.

0 votes
When you are running truffle on a local network, you need to specify the network configuration. You have to set the configuration in the truffle.js file. And it should look something like this:

module.exports = { networks: { development: { host: "localhost", port: 8545, network_id: "*" // Match any network id } } };
answered Jan 18 by Omkar
• 67,380 points

Related Questions In Blockchain

0 votes
2 answers

Truffle migrate Error after run testrpc

Simple Solution: // module.exports = { // ...READ MORE

answered Sep 24, 2018 in Blockchain by Wasim
48 views
0 votes
1 answer
0 votes
1 answer

truffle migrate Error

testrpc Check your truffle.js config port and ip ...READ MORE

answered Oct 8, 2018 in Blockchain by Omkar
• 67,380 points
96 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
138 views
0 votes
1 answer
0 votes
1 answer

Protocols used in a distributed/dlt system for the nodes to establish communication

yes all are over TCP/IP connections secured by TLS encryption in hashgraph architecture-hashgraph, ...READ MORE

answered Aug 6, 2018 in Blockchain by ariaholic
• 7,340 points
75 views
0 votes
2 answers

Truffle migrate gives “ Error: No network specified. ”

You have to mention on which network ...READ MORE

answered Aug 13, 2018 in Blockchain by Omkar
• 67,380 points
200 views
0 votes
1 answer

Not able to migrate contract in Truffle: Error: No network specified. Cannot determine current network

Make these entries in truffle.js file: module.exports = { ...READ MORE

answered Nov 29, 2018 in Blockchain by Omkar
• 67,380 points
113 views