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, 2019 in Blockchain by Karuna
2,426 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, 2019 by Omkar
• 69,210 points
0 votes
In my case, use sudo command.

truffle compile -> sudo truffle compile

truffle migrate -> sudo truffle migrate
answered Feb 20, 2019 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 30, 2018 in Blockchain by Omkar
• 69,210 points
912 views
0 votes
1 answer

truffle npm run dev not working

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

answered Dec 1, 2018 in Blockchain by Omkar
• 69,210 points
1,362 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
• 69,210 points
608 views
–1 vote
1 answer

Not able to compile truffle project

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

answered Jan 17, 2019 in Blockchain by Omkar
• 69,210 points
1,613 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
1,663 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,215 views
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
• 69,210 points
1,237 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, 2019 in Blockchain by Dinesh
11,308 views
0 votes
1 answer

Ethereum truffle server command not working

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

answered Nov 30, 2018 in Blockchain by Omkar
• 69,210 points
964 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP