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

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,020 points
+1 vote

First, initialize truffle project by running:

$ truffle init

And then make necessary changes and migrate using:

$ truffle migrate
answered Feb 19, 2019 by John

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,020 points
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,020 points
+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,280 points
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,810 points
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,027 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
0 votes
1 answer