6.5.0 • Published 6 years ago

mongodb-prebuilt v6.5.0

Weekly downloads
37,800
License
ISC
Repository
github
Last release
6 years ago

mongodb-prebuilt

badge

Install mongodb prebuilt binaries using npm. This module helps you easily install the mongodb 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 dependency:

npm install mongodb-prebuilt

--global to make MongoDB binaries accessible without additional configurations.

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.

CLI usage

The latest version of MongoDB is used by default for your OS and ~/.mongodb-prebuilt for downloading MongoDB binary. You can set desired version, download folder, architecture and platform through environment variables:

MONGODB_VERSION
MONGODB_DOWNLOADDIR
MONGODB_ARCH
MONGODB_PLATFORM

For example:

export MONGODB_DOWNLOADDIR='./' MONGODB_VERSION=3.4.10
mongod --port 27018 --dbpath ./mongodb --logpath /dev/stdout

Programmatic usage

let {MongodHelper} = require('mongodb-prebuilt');

let mongodHelper = new MongodHelper(['--port', "27018"]);

// OPTIONAL: to control what version of mongo you want to download

mongodHelper = new MongodHelper(['--port', "27018"], {
	version: 'x.x.x'
});

mongodHelper.run().then((started) => {
	console.log('mongod is running');
}, (e) => {
	console.log('error starting', e);
});
6.5.0

6 years ago

6.4.0

7 years ago

6.3.6

7 years ago

6.3.5

7 years ago

6.3.4

8 years ago

6.3.3

8 years ago

6.3.2

8 years ago

6.3.1

8 years ago

6.3.0

8 years ago

6.2.0

8 years ago

6.1.0

8 years ago

6.0.2

8 years ago

6.0.1

8 years ago

6.0.0

8 years ago

6.0.0-rc2

8 years ago

6.0.0-rc1

8 years ago

5.0.8

9 years ago

5.0.7

9 years ago

5.0.6

9 years ago

5.0.5

9 years ago

5.0.4

9 years ago

5.0.3

9 years ago

5.0.2

9 years ago

5.0.1

9 years ago

5.0.0

9 years ago

5.0.0-rc.3

9 years ago

5.0.0-rc.2

9 years ago

5.0.0-rc.1

9 years ago

4.6.0

9 years ago

4.5.5

9 years ago

4.5.4

9 years ago

4.5.3

9 years ago

4.5.2

9 years ago

4.5.1

9 years ago

4.5.0

9 years ago

4.4.9

9 years ago

4.4.8

9 years ago

4.4.7

9 years ago

4.4.6

9 years ago

4.4.5

9 years ago

4.4.4

9 years ago

4.4.3

9 years ago

4.4.2

9 years ago

4.4.1

9 years ago

4.4.0

9 years ago

4.2.16

10 years ago

4.2.15

10 years ago

4.2.14

10 years ago

4.2.13

10 years ago

4.2.12

10 years ago

4.2.11

10 years ago

4.2.10

10 years ago

4.2.9

10 years ago

4.2.8

10 years ago

4.2.7

10 years ago

4.2.6

10 years ago

4.2.5

10 years ago

4.1.6

10 years ago

4.1.5

10 years ago

4.1.4

10 years ago

4.1.3

10 years ago

4.1.2

10 years ago

4.1.1

10 years ago

4.1.0

10 years ago

4.0.2

10 years ago

4.0.2-beta1

10 years ago

4.0.1

10 years ago

3.0.6-6

10 years ago

3.0.6-5

10 years ago

3.0.6-4

10 years ago

3.0.6-rel.4

10 years ago

3.0.6-3

10 years ago

3.0.6-2

10 years ago

3.0.6-1

10 years ago

3.0.6

10 years ago

3.0.6-rc1

10 years ago

0.0.1

10 years ago