Truffle migrate network error

–1 vote

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, 2019 in Blockchain by digger
• 26,740 points
784 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, 2019 by Omkar
• 69,220 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
844 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
• 69,220 points
1,308 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
1,946 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,470 views
+1 vote
1 answer

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

yes all are over TCP/IP connections secured ...READ MORE

answered Aug 6, 2018 in Blockchain by aryya
• 7,460 points
1,460 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
• 69,220 points
1,746 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 30, 2018 in Blockchain by Omkar
• 69,220 points
1,213 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP