node-unix-socket-linux-x64-gnu

raw JSON →
0.2.7 verified Sat May 09 auth: no javascript

Platform-specific binary for node-unix-socket on x86_64 Linux with glibc. Version 0.2.7 supports SO_REUSEPORT, SOCK_SEQPACKET, and SOCK_DGRAM in Node.js. No named exports; automatically required by the main package. Direct use is unnecessary and may break.

error Cannot find module 'node-unix-socket-linux-x64-gnu'
cause Attempting to import or require this platform-specific package directly.
fix
Use 'node-unix-socket' instead, which will automatically select the correct binary.
gotcha Directly requiring this package will fail because it's a native binary without JS exports.
fix Use the parent package 'node-unix-socket' instead.
npm install node-unix-socket-linux-x64-gnu
yarn add node-unix-socket-linux-x64-gnu
pnpm add node-unix-socket-linux-x64-gnu

Shows correct usage via the parent package, not this binary.

// This package is an internal binary; use 'node-unix-socket' instead.
// Example:
const unix = require('node-unix-socket');
const server = unix.createSocket('unix', { reusePort: true });
console.log('Socket created');