nodejitsu deploy error

While trying to deploy an app to Nodejitsu I received the dreaded "not ok" error message.

I had previously had successful deployments using this code base. As i had only made a few minor issues in css files I figured this was odd.

info     Uploading: [=============================] 100%
error:   Error running command deploy
error:   Nodejitsu Error (500): Internal Server Error

It then listed my dependencies failing at this point:

npm http 200 https://registry.npmjs.org/connect/-/connect-2.7.3.tgz
npm ERR! Error: version not found: 3.6.0 : mongoose/3.6.0

So it seems that version of mongoose has been removed from npm.

I used the brilliant npmedge and found any other dependencies that needed updating, updating my package.json file accordingly.

Bam! The next deploy - successful straight away.

Hope that helps someone?