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
196 views

2 answers to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
• 65,850 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,040 points
494 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,040 points
157 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
65 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 114 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
• 65,850 points
78 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
• 65,850 points
38 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.