Reputation: 83299
I see that installing hiredis requires a format I've not seen before. Instead of the expected:
npm install hiredis
...the format is actually:
npm install hiredis redis
How should I go about adding hiredis to my package.json dependencies so that it installs properly?
Upvotes: 2
Views: 1513
Reputation: 39251
The redis
module will automatically use hiredis
if it's available.
npm install redis hiredis
is identical to
npm install redis
npm install hiredis
In short, just include it in your package.json
like any other module.
"dependencies": {
"redis": "",
"hiredis": ""
}
Upvotes: 3