Skip to content
This repository has been archived by the owner on Feb 13, 2022. It is now read-only.

memcache create server crash... #43

Closed
PaykomanVll opened this issue Jun 23, 2017 · 4 comments
Closed

memcache create server crash... #43

PaykomanVll opened this issue Jun 23, 2017 · 4 comments

Comments

@PaykomanVll
Copy link

PaykomanVll commented Jun 23, 2017

Hello,

all my modules use the current versions but the memcache will not more work after a serverchange :(
If memcache not uncommented i get this error:

root:/# node /srv/wpo/node_modules/socket.io/lib/app.js
util.js:989
    throw new TypeError('The super constructor to "inherits" must not ' +
    ^

TypeError: The super constructor to "inherits" must not be null or undefined
    at Object.exports.inherits (util.js:989:11)
    at Object.<anonymous> (/srv/wpo/node_modules/memcache/lib/memcache.js:45:6)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/srv/wpo/node_modules/socket.io/lib/lobby.js:7:16)

The lobby.js:7:16 is
var memcache = require("memcache");

my package.json

{
  "name": "wpoDev",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node ./bin/www"
  },
  "dependencies": {
    "event": "*",
    "jsftp": "*",
    "memcache": "*",
    "mysql": "*",
    "node-mysql": "*",
    "request": "*",
    "socket.io": "*",
    "util": "*",
    "memcache": "*",
    "socket.io-client": "*",
    "squel": "*",
    "striptags": "*",
    "validator": "*",
    "xss-filters": "*"
    "assert": "*",
  }
}

I hope anybody can help me i need this modul :-(

@davidcralph
Copy link

I'm having an issue with this as well.. :/

@PaykomanVll
Copy link
Author

Nobody can help?

@Jacob-Gray
Copy link

What version of Node are you using? I get this issue when using v8+, but not when using the v6LTS

@PaykomanVll
Copy link
Author

PaykomanVll commented Sep 30, 2017

Hello,

i have fix it... process.EventEmitter is deprecated and i have this line be changed

https://github.com/elbart/node-memcache/blob/master/lib/memcache.js#L45

to:
util.inherits(Client, require('events') );

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants