Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Installed pulsar-client-node successfully but when require the module throw "Error: The specified module could not be found."

Open
#222 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp, node.js
Domain
api, backend

Research direction

Reproduce the minimal require("pulsar-client") case from test.js on Windows with Node 18.4.0, then inspect node_modules/bindings/bindings.js and node_modules/pulsar-client/index.js along with the linked README and C++ setup documentation. Done means the native Pulsar.node module loads successfully without ERR_DLOPEN_FAILED.

Written by the indexing model from the issue text.

Description

  1. install C++ version as doc
  2. build Release and set system variable as README
  3. install pulsar-client successfully
  4. require("pulsar-client")
  • node:18.4.0
  • system:Win 10

the minium error code is following:

const Pulsar = require('pulsar-client');

console.log(Pulsar);

but the terminal throw an error like

[Running] node "e:\pulsar-client-node\test.js"
e:\pulsar-client-node\node_modules\bindings\bindings.js:121
        throw e;
        ^

Error: The specified module could not be found.

\\?\e:\pulsar-client-node\node_modules\pulsar-client\build\Release\Pulsar.node
    at Module._extensions..node (node:internal/modules/cjs/loader:1196:18)
    at Module.load (node:internal/modules/cjs/loader:988:32)
    at Module._load (node:internal/modules/cjs/loader:834:12)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at bindings (e:\pulsar-client-node\node_modules\bindings\bindings.js:112:48)
    at Object.<anonymous> (e:\pulsar-client-node\node_modules\pulsar-client\index.js:20:42)
    at Module._compile (node:internal/modules/cjs/loader:1112:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1166:10)
    at Module.load (node:internal/modules/cjs/loader:988:32) {
  code: 'ERR_DLOPEN_FAILED'
}

I've searched for a while, and some answers say that maybe the vcpkg lead this error, but I don't know how to solve it. If someone can help me, i'll be reallllly grateful.

Dominant language
C++
Stars
164
Forks
99
Avg merge
5d 18h
Merged PRs (30d)
2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/pulsar-client-node

All issues in apache/pulsar-client-node

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.