Registry / database / redis-prebuilt

redis-prebuilt

JSON →
library1.0.54jsnpmunverified

Installs prebuilt Redis binaries via npm, avoiding compilation. Uses semantic-release for automated publishing, current version 1.0.54. Key differentiator: no build tools required, simple installation for CI/CD or development environments. Supports environment variables for version and download directory. Requires Node.js >=12.8.0.

npm install redis-prebuilt
INSTALL
IMPORT
SIG · REDIS-PREBUILT
R
redis-prebuilt
databasejavascriptv1.0.54
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import redisPrebuilt from 'redis-prebuilt'
const redisPrebuilt = require('redis-prebuilt')
Package is ESM-only; CJS require will fail without dynamic import.
RedisServer
import { RedisServer } from 'redis-prebuilt'
const { RedisServer } = require('redis-prebuilt')
Named export for starting server; must use ESM import.
RedisClient
import { RedisClient } from 'redis-prebuilt'
Alternative named export for client connection.

Provides ESM imports and TypeScript types. Demonstrates starting and stopping a Redis server with custom port.

import { RedisServer } from 'redis-prebuilt'; const server = new RedisServer({ port: 6379 }); await server.start(); console.log('Redis server started'); // ... use server ... await server.stop();
Debug
Known issues
gotchaPackage downloads binary during install - requires network access and may fail behind proxies.
fix
Ensure network accessibility or pre-download binary.
affects: all
gotchaBinary paths rely on environment variables REDIS_DOWNLOADDIR and REDIS_VERSION - not setting them uses defaults (~/.redis-prebuilt and latest).
fix
Set environment variables explicitly in production.
affects: all
deprecatedNode.js <12.8.0 not supported - engine requirement may break older projects.
fix
Upgrade Node.js to 12.8.0 or higher.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Could not download Redis binary: getaddrinfo ENOTFOUND
Network failure during npm install - cannot reach Redis download server.
fix
Check internet connection, proxy settings, or pre-download binary.
TypeError: redisPrebuilt is not a function
Using CommonJS require instead of ESM import.
fix
Use `import redisPrebuilt from 'redis-prebuilt'` instead of `require`.
Error: Redis binary not found at /home/user/.redis-prebuilt/redis-server
Environment variable REDIS_DOWNLOADDIR is set incorrectly or binary not downloaded.
fix
Ensure REDIS_DOWNLOADDIR points to correct directory with binaries.
Upgrade
Version history
1.0.54latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
14
Resources
redis-prebuilt — npm install redis-prebuilt · libregistry