Truffle console error Could not find suitable configuration file

0 votes

I have installed truffle in Windows 10 and have created a project. Now I want to compile, migrate and deploy the project. For this, I am trying to open truffle console with the command:

truffle console

But I am getting this error:

Could not find a suitable configuration file.
Jan 29, 2019 in Blockchain by Sumana
3,581 views

2 answers to this question.

0 votes

This is a problem common with truffle on the Windows platform. When you install truffle, for some reason gives configuration error. To solve this, you can force install truffle which will set the configurations. Use this command:

npm install --force -g truffle
answered Jan 29, 2019 by Omkar
• 69,110 points
+2 votes

First, initialize truffle project by running:

$ truffle init

And then make necessary changes and migrate using:

$ truffle migrate
answered Feb 19, 2019 by John
Great help! Thank you!

Hi, @EtherChamp,

Thanks for your contribution, glad that it helped you. Do register with the Edureka community for any updates on tech queries and you can ask any tech-related queries and upvote the answer if you find it helpful. 

This worked. Thank you so much!

Related Questions In Blockchain

0 votes
1 answer

Truffle can not find artifacts error

To deploy any project/ smart contract, you ...READ MORE

answered Jan 23, 2019 in Blockchain by Omkar
• 69,110 points
1,312 views
0 votes
1 answer

Truffle does not open console, instead opens truffle.js file

When running truffle commands on Windows system, ...READ MORE

answered Jan 29, 2019 in Blockchain by Omkar
• 69,110 points
267 views
+1 vote
5 answers

How to solve "truffle: command not found" error in blockchain?

First try restarting the system and then ...READ MORE

answered Jul 16, 2018 in Blockchain by slayer
• 29,300 points
4,559 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,830 points
555 views
0 votes
1 answer
0 votes
0 answers

Error: Unexpected token o in JSON at position 1

I have been working with Interacting a ...READ MORE

Mar 6, 2019 in Blockchain by saeedi
• 120 points

edited Mar 6, 2019 by Omkar 1,275 views
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
5,261 views
0 votes
1 answer