10

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?

14

Very noob mistake from my part.

I have actually to initialize the project before migrating it.

truffle init

after that

truffle migrate

sorry.

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

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: "127.0.0.1",
      port: 8545,
      network_id: "*" // Match any network id
    }
  }
};

related truffle documentation

after adding this file my desired truffle commands worked

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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