You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/07/04 16:10:01 UTC

[GitHub] [pulsar-client-node] HyperClockUp opened a new issue, #222: I have installed pulsar-client-node successfully but when calling require throw Error as "Error: The specified module could not be found."

HyperClockUp opened a new issue, #222:
URL: https://github.com/apache/pulsar-client-node/issues/222

   1. install C++ version as [doc](https://pulsar.apache.org/docs/client-libraries-cpp#windows-64-bit)
   2. build Release and set system variable as [README](https://github.com/apache/pulsar-client-node#readme)
   3. install `pulsar-client` successfully
   4. `require("pulsar-client")`
   
   the minium error code is following:
   ```nodejs
   const Pulsar = require('pulsar-client');
   
   console.log(Pulsar );
   ```
   
   but the terminal throw an error like
   ```shell
   Error: The specified module could not be found.
   \\?\E:\latex-server\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 Object.<anonymous> (E:\latex-server\node_modules\pulsar-client\index.js:20:23)
       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)
       at Module._load (node:internal/modules/cjs/loader:834:12) {
     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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@pulsar.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar-client-node] HenriqueSerafim commented on issue #222: Installed pulsar-client-node successfully but when require the module throw "Error: The specified module could not be found."

Posted by GitBox <gi...@apache.org>.
HenriqueSerafim commented on issue #222:
URL: https://github.com/apache/pulsar-client-node/issues/222#issuecomment-1178780237

   hey @HyperClockUp, any news on this? I'm stuck in the same error too.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org