I installed truffle globally. I'm trying to connect truffle to a localhost
truffle console > migrate It failed with Unknown network "development". See your Truffle configuration file for available networks..
truffle.js and truffle-config.js ( why there are two files ? )
module.exports = { networks: { development: { host: "localhost", port: 9545, network_id: "*" // Match any network id } } };