JSPM

  • Created
  • Published
  • Downloads 4228
  • Score
    100M100P100Q154819F
  • License ISC

Install MongoDB prebuilt binaries via npm

Package Exports

  • mongodb-prebuilt

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mongodb-prebuilt) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

mongodb-prebuilt

badge

Install mongodb prebuilt binaries for command-line use using npm. This module helps you easily install the mongodb command for use on the command line without having to compile anything.

MongoDB is an open-source, document database designed for ease of development and scaling.

Installation

Download and install the latest build of mongodb for your OS and add it to your projects package.json as a devDependency:

npm install mongodb-prebuilt --save-dev

You can also use the -g flag (global) to symlink it into your PATH:

npm install -g mongodb-prebuilt

If that command fails with an EACCESS error you may have to run it again with sudo:

sudo npm install -g mongodb-prebuilt

Now you can just run mongod to run mongodb:

mongod

Complete list of programs:

About

Works on Mac, Windows, Linux and Solaris OSes that MongoDB supports.

The version numbers of this module DO NOT match the version number of the offical MongoDB releases. By default, latest production release will be selected. Different version is set via mongodb-version option:

npm install --mongodb-version=3.0.2 mongodb-prebuilt

Programmatic usage

var mongo_bin = require('mongodb-prebuilt');
var proc = require('child_process');

// spawn mongod
var child = proc.spawn(mongo_bin + "mongod");