PHP中文网2017-04-27 09:04:13
npm is based on node, brew is based on mac.
But npm installs mongo middleware, not the database. They are not the same thing.
What I use now is brew installation, and I find it very convenient to manage.
I installed it based on this article. I hope it will be helpful to you
phpcn_u15822017-04-27 09:04:13
With this software, you can directly download the gz compressed package, then decompress it and configure the path. This solution is probably the simplest. My mac mongodb3 is decompressed directly.