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
13,157 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,210 points
+6 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 24, 2019 in Blockchain by Omkar
• 69,210 points
4,582 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,210 points
739 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,350 points
11,272 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
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 2,181 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
11,307 views
0 votes
1 answer
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