It is a convenient tool to run npm install
on every bower dependency.
- Install it
npm -g install bower-npm-install
cd
to your project root withbower.json
- Run
bower-npm-install
and see the output
var bowerNpmInstall = require('bower-npm-install');
bowerNpmInstall(/*paths, options, config*/)
.on('log', function(data) {
console.log(data);
})
.on('error', function(err) {
console.error(err);
})
.on('end', function(installed) {
console.log('Installed packages: ' + JSON.stringify(installed, null, 2));
});