Skip to content

Instantly share code, notes, and snippets.

@jdub
Created January 4, 2011 17:48
Show Gist options
  • Save jdub/765096 to your computer and use it in GitHub Desktop.
Save jdub/765096 to your computer and use it in GitHub Desktop.
/home/jdub/.node_libraries/.npm/creationix/0.0.5/package/static.js:79
stream.once('data', function (chunk) {
^
TypeError: Object [object Object] has no method 'once'
at onStat (/home/jdub/.node_libraries/.npm/creationix/0.0.5/package/static.js:79:14)
at node.js:773:9
@creationix
Copy link

Hmm, I guess once is a new node thing (I only tested on v0.3.3 this weekend). I'll add a compat function at the top. I need creationix/static to work on node v0.2.3 as well.

@jdub
Copy link
Author

jdub commented Jan 4, 2011

Aha, that makes sense -- thanks! 0.2.x is starting to feel a bit old school, innit? ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment