Using Node v0.12.4 and http.parsers undefined
This only started popping up after I updated my Nodejs version to the latest. (The previous version I was using where it worked was v0.10.28)
The error is shown in upnp.js inside the _initParsers function on the line that calls
self.requestParser = http.parsers.alloc();
I'm getting this one too, "node -v" shows v4.1.1
self.requestParser = http.parsers.alloc(); ^ TypeError: Cannot read property 'alloc' of undefined
Anyone find a fix yet? I found one fix suggestion on Google, implemented it, and still got the error. (This one - https://github.com/jacobrask/node-upnp-device/issues/11#issuecomment-134781209)
I updated my debian machine tonight and began receiving this same error. I am using this within a wrapper class I wrote to fit in my own home HA system that includes a single wemo. Gone over my own (very simple) code to no avail. node -v shows v4.2.2 Any suggestions?
Sorry, I never looked this up again. I would use NVM to allow you to choose between different node versions http://blog.anthonyngu.com/2015/05/27/nvm-your-node-js-friend/