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 in Blockchain by Sumana
613 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 by Omkar
• 67,610 points
0 votes

First, initialize truffle project by running:

$ truffle init

And then make necessary changes and migrate using:

$ truffle migrate
answered Feb 19 by John

Related Questions In Blockchain

+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,170 points
930 views
0 votes
1 answer

Truffle tutorials "Error:recipient address is not a contract address"

It appears like you have already migrated ...READ MORE

answered Aug 8, 2018 in Blockchain by slayer
• 29,170 points
207 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
153 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 in Blockchain by saeedi
• 120 points

edited Mar 6 by Omkar 420 views
0 votes
1 answer

Truffle can not find artifacts error

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

answered Jan 23 in Blockchain by Omkar
• 67,610 points
247 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 in Blockchain by Omkar
• 67,610 points
75 views