$ gnpm install npm-install-package
Install an npm package.
$ npm install npm-install-package
var install = require('npm-install-package')
install('minimist', function (err) {
if (err) throw err
})
With multiple installs, offline-first fetching and saving to dev dependencies:
var install = require('npm-install-package')
var devDeps = [ 'map-limit', 'minimist', 'cliclopts' ]
var opts = { saveDev: true, cache: true }
install(devDeps, opts, function (err) {
if (err) throw err
})
Install an array of dependencies. Opts can contain the following values:
dependencies
. Defaults to false
devDependencies
. Defaults to false
false
false
Copyright 2013 - present © cnpmjs.org | Home |