Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic Example does not working #6

Closed
mcolombo22 opened this issue Feb 7, 2017 · 3 comments
Closed

Basic Example does not working #6

mcolombo22 opened this issue Feb 7, 2017 · 3 comments

Comments

@mcolombo22
Copy link

I´m trying to create a simply redis server and start with the "Basic Example" but when i run it the following exception is throw

events.js:142
throw er; // Unhandled 'error' event
^

Error: spawn redis-server ENOENT
at exports._errnoException (util.js:856:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:179:32)
at onErrorNT (internal/child_process.js:345:16)
at nextTickCallbackWith2Args (node.js:455:9)
at process._tickCallback (node.js:369:17)
at Function.Module.runMain (module.js:433:11)
at startup (node.js:141:18)
at node.js:977:3

I tried to run with the RunKit and receive the same error:
https://runkit.com/589a067aa5c2fc00155ea0df/589a067aa5c2fc00155ea0e0

Could you help me?

@BrandonZacharie
Copy link
Owner

You must have a Redis server binary (redis-server) available and I don't think RunKit has one.

ENONT stands for Error NO ENTry (No such file or directory). That only occurs in this module when RedisServer.open attempts to spawn a child process and the given Redis server binary (redis-server by default) cannot be found in path. However, you may provide a path to a binary in configuration.

const server = new RedisServer({
  bin: '/path/to/redis-server'
});

@BrandonZacharie
Copy link
Owner

BrandonZacharie commented Feb 20, 2017

Were you able to get this working locally after installing Redis?

@BrandonZacharie
Copy link
Owner

I'm closing this as a duplicate of #2. If you have any further issues, I'll reopen.

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

No branches or pull requests

2 participants