I have searched some answers here and on google as well but none of them actually apply to my case.

I tried on console and power shell to run truffle migrate but I keep getting

could not find suitable configuration file

I saw that sometimes renaming the truffle-config.js is also an option but I just don't find this file on my computer even after running

npm install --force -g truffle

Any ideas of what could that be?


5 Answers 5


Very noob mistake from my part.

I have actually to initialize the project before migrating it.

truffle init

after that

truffle migrate


  • I made this noob mistake as well. I'm just starting out and wasn't in the correct directory.
    – Sami Start
    Commented Nov 5, 2017 at 10:49

I had a similar issue. My problem was that my project (on the project root level) was missing a truffle.js file with the following contents:

module.exports = {
  networks: {
    development: {
      host: "",
      port: 8545,
      network_id: "*" // Match any network id

related truffle documentation

after adding this file my desired truffle commands worked


I'm answering this question at a later date. I ran into the same issue, and in my case, none of the answers above was a solution for me. I made a silly mistake, and that was executing truffle console in the wrong directory.

My solution was to run truffle console in the directory containing truffle-config.js.

Hopefully, anyone running into a similar issue might find this helpful sometimes.


in my case I initialized truffle with "truffle init" in the same directory in which i was working and then every truffle command started working.


I also had the same problem but despite i had truffle-config file in root folder.

The problem that is was a truffle-config.ts not truffle-config.js.

Looks like truffle only works with JS config files. Anyway wish this might help anyone )

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.