31809/migrate-contract-truffle-specified-determine-current-network
When I run
truffle migrate
I get this error:
Error: No network specified. Cannot determine current network. at Object.detect (/usr/local/lib/node_modules/truffle/build/webpack:/packages/truffle-core/lib/environment.js:31:1) at /usr/local/lib/node_modules/truffle/build/webpack:/packages/truffle-core/lib/commands/migrate.js:91:1 at finished (/usr/local/lib/node_modules/truffle/build/webpack:/packages/truffle-workflow-compile/index.js:53:1) at /usr/local/lib/node_modules/truffle/build/webpack:/packages/truffle-compile/index.js:314:1 at /usr/local/lib/node_modules/truffle/build/webpack:/packages/truffle-compile/profiler.js:158:1 at /usr/local/lib/node_modules/truffle/build/webpack:/~/async/dist/async.js:3888:1 at /usr/local/lib/node_modules/truffle/build/webpack:/~/async/dist/async.js:473:1 at replenish (/usr/local/lib/node_modules/truffle/build/webpack:/~/async/dist/async.js:1006:1) at iterateeCallback (/usr/local/lib/node_modules/truffle/build/webpack:/~/async/dist/async.js:995:1) at /usr/local/lib/node_modules/truffle/build/webpack:/~/async/dist/async.js:969:1 at /usr/local/lib/node_modules/truffle/build/webpack:/~/async/dist/async.js:3885:1 at /usr/local/lib/node_modules/truffle/build/webpack:/packages/truffle-compile/profiler.js:154:1 at /usr/local/lib/node_modules/truffle/build/webpack:/~/async/dist/async.js:1140:1 at /usr/local/lib/node_modules/truffle/build/webpack:/~/async/dist/async.js:473:1 at iteratorCallback (/usr/local/lib/node_modules/truffle/build/webpack:/~/async/dist/async.js:1064:1) at /usr/local/lib/node_modules/truffle/build/webpack:/~/async/dist/async.js:969:1 at /usr/local/lib/node_modules/truffle/build/webpack:/~/async/dist/async.js:1137:1 at /usr/local/lib/node_modules/truffle/build/webpack:/packages/truffle-compile/profiler.js:133:1 at FSReqWrap.oncomplete (fs.js:153:5)
Make these entries in truffle.js file:
module.exports = { networks: { development: { host: "localhost", port: 8545, network_id: "*" // Match any network id } } };
Try compiling and migrating the contract: $ truffle ...READ MORE
First try restarting the system and then ...READ MORE
Hope this helps: contract mortal { /* ...READ MORE
Looks like the account you are trying ...READ MORE
This was a bug. They've fixed it. ...READ MORE
Summary: Both should provide similar reliability of ...READ MORE
yes all are over TCP/IP connections secured ...READ MORE
You have to mention on which network ...READ MORE
You have to mention the network id ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.