I have a feeling this is going to be a forehead-slapper, but here goes...
I'm attempting to run Truffle's "Pet Shop" demo app on AWS. The truffle compile command ran fine, with a few non-fatal warnings but nothing major. It completed with...
Writing artifacts to ./build/contracts
...as expected. But truffle migrate is failing, and it seems to be not seeing the contents of the file successfully created at contracts/Migrations.json.
$ truffle migrate Using network 'development'. Error: Could not find built Migrations contract: Unexpected token in JSON at position 0
However, the file is there, and seems fine. Any idea why this is failing?
Also worth noting: I've got two console windows running (both SSH'd into the same AWS EC2 instance), and the second of the two is running testrpc. It is "listening" and does tell me...
Listening on localhost:8545 net_version eth_accounts
...when I attempt the migration, but nothing beyond that.
Thanks for any nudge in the right direction!