truffle compile/migrate fail to build, no error output

Created on 7 Feb 2019  路  5Comments  路  Source: trufflesuite/truffle

  • [ ] I've asked for help in the Truffle Gitter before filing this issue.

    no, but I was instructed to open an issue on twitter.

Issue

Truffle compile and truffle migrate are both failing to build, or do anything for that matter.

Steps to Reproduce

In a new directory...
truffle init
create a basic contract
create migrations
ganache-cli -b 3
truffle compile

Expected Behavior

typically truffle compile will build the contracts for you

Actual Results

Nothing happens, not even error messages. The terminal spins for a bit then returns.

Environment

  • Operating System: High Sierra 10.13.6
  • Ethereum client: ganache
  • Truffle version (truffle version): 5.0.3
  • node version (node --version): 10.13.0
  • npm version (npm --version): 6.4.1

Most helpful comment

This may be unrelated, but I recently had a similar issue that had to do with maximum stack depth (though it wasn't being reported). My fix was simply running:

node --stack_size=2000 "./node_modules/truffle/build/cli.bundled.js" compile

All 5 comments

This may be unrelated, but I recently had a similar issue that had to do with maximum stack depth (though it wasn't being reported). My fix was simply running:

node --stack_size=2000 "./node_modules/truffle/build/cli.bundled.js" compile

That work perfectly! Thanks so much.

I know this issue is closed, but I was able to solve it by running compile and migrate as a root. You can close this if you want, but I just wanted to put it out there.

I successfully sovle it by the way @FlashBlaze referred to.
Just a comment, I guess the reason why this promblem appear is because at the beginning, the truffle was installed by sudo persmission. Then when you use the regular user permission, this problem will happen.
(Honestly, I believe except using root permission, there's supposed to be more 'beautiful' solutions. But I havn't known yet.)
But I could be wrong. Welcome to your criticism.

Thank you @AtlasQuan Worked for me.

sudo truffle compile

Was this page helpful?
0 / 5 - 0 ratings