"mix phoenix.new hello_phoenix --database mongodb" get deps warning

I’m newbie to phoenix as a nodejs background, so I want to use mongodb as my default database, but when I start new a phoenix project, it report an error:

error command failed to execute, please run the following command again after installation: “mix deps.get”"

then type “mix deps.get”, it report:

'Failed to use “ecto” (version 2.0.5) because
mongodb_ecto (versions 0.1.3 and 0.1.4) requires ~> 1.0.0
phoenix_ecto (version 3.0.1) requires ~> 2.0

** (Mix) Hex dependency resolution failed, relax the version requirements of your dependencies or unlock them (by using mix deps.update or mix deps.unlock). If you are unable to resolve the conflicts you can try overriding with {:dependency, “~> 1.0”, override: true}’

I google some answers, but still can’t go through it. Any idea?

Have you seen MongoDB with Phoenix & Ecto?


so use the dirve directly:grinning: