node-upnp-controlpoint icon indicating copy to clipboard operation
node-upnp-controlpoint copied to clipboard

Using Node v0.12.4 and http.parsers undefined

Open anthony-ngu opened this issue 10 years ago • 3 comments

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();

anthony-ngu avatar May 26 '15 05:05 anthony-ngu

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)

jdevelvis avatar Oct 06 '15 11:10 jdevelvis

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?

willelmes avatar Nov 18 '15 01:11 willelmes

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/

anthony-ngu avatar Feb 14 '16 00:02 anthony-ngu