Saturday, March 26, 2011

Error trying to run AHR (NodeJS) EC2 on new default EC2 Instance

I am attempting to play around with Node.js on EC2 and haven't been able to get it working yet.
I have installed the AHR package using NPM but cannot even run the most basic example:

[ec2-user src]$ node
> var request = require('ahr');
ReferenceError: provide is not defined
    at /home/ec2-user/src/node_modules/ahr/lib/ahr.js:810:49
    at Object.<anonymous> (/home/ec2-user/src/node_modules/ahr/lib/ahr.js:812:1)
    at Module._compile (module.js:404:26)
    at Object..js (module.js:410:10)
    at Module.load (module.js:336:31)
    at Function._load (module.js:297:12)
    at require (module.js:348:19)
    at [object Context]:1:15
    at Interface.<anonymous> (repl.js:171:22)
    at Interface.emit (events.js:64:17)

There was no mention of this anywhere on their site - but I have determined that I was missing some dependencies:
  • require-kiss
  • futures
  • buffer-js
After all of that - it still isn't working, not sure if it is the version of nodeJS I am running or what...

1 comment:

  1. Did you ever resolve this? I'm faffing along the same lines