Failed connection to database on new project

System Information
  • Strapi Version:
    Strapi 3.5.3
  • Operating System:
    macOs Catalina
  • Database:
    MongoDB Community 4.4.3
  • Node Version:
    Node 14.15.5
  • NPM Version:
    NPM 7.5.4

I am trying to create a new project using npx create-strapi-app my-app…
but when select custom configuration. I try to connect to my mongodb on localhost always test connection fail.

Using Mongo Compass everything works well…

Did you manually create that database before installing Strapi?

Yes, I did

well, try to delete it and let the installation script to do that for you.

I tried, but it’s not working too. I don’t know what’s the problem. Because using a previous version was working well.

In this case it may be a problem specific to your system configuration, probably a Strapi team developer will try to reproduce the issue and will provide you a solution.

Thanks for your help, I will keep trying and I hope to find some solution.

@SorinGFS I solved it, my problem was with the NPM version … it seems that 7 does not work for me, so I updated Node with NPM 6.14.11 and now it is working.