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,620 points
26 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
• 65,850 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
31 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
• 65,850 points
58 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
65 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,320 points
43 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
• 65,850 points
149 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
• 65,850 points
79 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.