Heroku uses a very old version of node.js

But there’s a solution

I spent a while wondering why my code that ran so good localy wouldn’t run on heroku. I couldn’t figure it out when I suddenly noticed that the node.js version wasn’t 0.8 but instead 0.4!

Node.js versions on heroku tells you to just add the following to your packages.json file and it’ll work. And it does!

"engines": {
  "node": "0.8.x",
  "npm":  "1.1.x"