Mac installation mongodb

  mongodb, question

Is there any difference between installing mongodb with brew and npm in mac system? Which method is more convenient for later installation, use and maintenance?

Npm is node-based and brew is mac-based.
But npm installs mongo middleware, not database. They are not of the same kind.

I am using brew to install it now and feel it is very convenient to manage it.
At that time, it was a reference.This articleInstalled, hope to be helpful to you