Truffle compile/migrate not working

0 votes

I am trying to run a Smart Contract on Truffle. I created a new directory and ran 

$ truffle init

command. 

I created a contract and made changes to the migrations file. Now when I run truffle compile command, I get no output or error. It is just hung there. 

Feb 7 in Blockchain by Karuna
529 views

2 answers to this question.

0 votes

I faced a similar problem a few days ago. It had something to do with maximum stack depth. This is what solved the problem for me:

node --stack_size=2000 "./node_modules/truffle/build/cli.bundled.js" compile
answered Feb 7 by Omkar
• 67,660 points
0 votes
In my case, use sudo command.

truffle compile -> sudo truffle compile

truffle migrate -> sudo truffle migrate
answered Feb 20 by byoul
Did you get any error when you ran the command sudo? Because usually when commands require admin privileges, they give permission denied error. In my case, I got no error.

Related Questions In Blockchain

0 votes
1 answer

Not able to migrate contract in Truffle: Error: No network specified. Cannot determine current network

Make these entries in truffle.js file: module.exports = { ...READ MORE

answered Nov 29, 2018 in Blockchain by Omkar
• 67,660 points
130 views
0 votes
1 answer

truffle npm run dev not working

Are you running this command from the ...READ MORE

answered Nov 30, 2018 in Blockchain by Omkar
• 67,660 points
333 views
0 votes
1 answer

Not able to migrate truffle project even after running testrpc

Maybe you forgot to compile the project ...READ MORE

answered Dec 11, 2018 in Blockchain by Omkar
• 67,660 points
76 views
–1 vote
1 answer

Not able to compile truffle project

Hi. If you look at the error ...READ MORE

answered Jan 17 in Blockchain by Omkar
• 67,660 points
208 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
169 views
0 votes
1 answer
0 votes
1 answer

Solidity geth: Error encountered during contract execution [Bad instruction]

recipes is a dynamic storage array. You need ...READ MORE

answered Oct 15, 2018 in Blockchain by Omkar
• 67,660 points
101 views
0 votes
1 answer
0 votes
3 answers

Truffle migrate Could not connect to your Ethereum client.

As mentioned in the previous answer, you ...READ MORE

answered Feb 19 in Blockchain by Dinesh
1,816 views
0 votes
1 answer

Ethereum truffle server command not working

Try this command to create project: truffle init ...READ MORE

answered Nov 29, 2018 in Blockchain by Omkar
• 67,660 points
156 views