Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
mongodb-prebuilt
Advanced tools
Readme
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.
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:
Works on Mac, Windows, Linux and Solaris OSes that MongoDB supports.
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
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);
});
FAQs
Install MongoDB prebuilt binaries via npm
The npm package mongodb-prebuilt receives a total of 3,862 weekly downloads. As such, mongodb-prebuilt popularity was classified as popular.
We found that mongodb-prebuilt demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.