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
304 views

2 answers to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
• 65,810 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
• 65,810 points
78 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
• 65,810 points
190 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
• 65,810 points
45 views
0 votes
1 answer

Not able to compile truffle project

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

answered Jan 17 in Blockchain by Omkar
• 65,810 points
104 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
60 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
• 65,810 points
28 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
857 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
• 65,810 points
71 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.