Day 69, Nodejitsu and bower install

Sigh…

Wanted to deploy to Nodejitsu, but can’t get the bower install to work.

Basically, our app has two package management systems, npm and bower. While Nodejitsu supports npm, it doesn’t seem to support bower.

I tried to do this:

var bower = require('bower'),
path = require('path');

bower.commands
.install(['underscore'])
.on('end', function(installed) {
console.log(installed);
});

With this in my package.json:

  "scripts": {
    "predeploy": "echo Before deploying!",
    "postdeploy": "node ./bower_install.js",
    "start": "node ./start.js"
  }

Can’t get it to work. Following the advice from this url: http://stackoverflow.com/questions/16795677/nodejitsu-and-bower-install/16796998#16796998

Advertisements
Standard