I have a problem that suddenly appeared, and now I get it every time that I try to run
truffle test or
truffle migrate, regardless of which project it is. I've even tried fetching the Petshop from the truffle docs (http://truffleframework.com/tutorials/pet-shop), and I still get the same error:
mybox@c:~/code/petshop (master)$ truffle test Using network 'development'. Error: Don't set config.from directly. Instead, set config.networks and then config.networks[<network name>].from at Config.set [as from] (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:3019:15) at /usr/local/lib/node_modules/truffle/build/cli.bundled.js:320066:21 at <anonymous> at process._tickCallback (internal/process/next_tick.js:160:7)
It seems like it protests that I'm using the old syntax for setting
from, wanting me to do it for each network. However, this is done in the
truffle.js file of all of the projects. It almost seems as there is some kind of global config that overrides the local somewhere, but I have no idea where.
I've tried reinstalling and downgrading truffle, to no avail.
- Node v9.4.0
- Truffle 4.0.1