zeromq.js icon indicating copy to clipboard operation
zeromq.js copied to clipboard

(6.0.0-beta6 Production) Error: The specified module could not be found.

Open koraniar opened this issue 5 years ago • 0 comments

Describe the bug

I have two devices:

  • Developer device that has:
    • Windows 10 1909.
    • Node 10.19.
    • Python 2.7.
    • Build tools 2017.
  • Client device ONLY has:
    • Windows 10 1909 (just installed).
    • Node 10.19.

In the Developer Device, everything works fine, but in the Client Device, cannot find the specified module.

Reproducing

  1. Download "v6.0.0-beta.6-windows-x64.tar.gz" from Github releases here.
  2. Create this javascript file
const a = require("Path\\To\\node.napi.node");
  1. Run the file in a device that does not have the developer tools.

Example Error

» ×  fatal     Error: The specified module could not be found.
\\?\C:\Program Files\Tulpep\Vtul\node_modules\zeromq\build\Release\zeromq.node
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:805:18)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:690:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at load (C:\Program Files\Tulpep\Vtul\node_modules\node-gyp-build\index.js:20:10)
    at Object.<anonymous> (C:\Program Files\Tulpep\Vtul\node_modules\zeromq\lib\native.js:6:43)
    at Module._compile (internal/modules/cjs/loader.js:776:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10) 'Unhandled Rejection at Promise' Promise {
  <rejected> Error: The specified module could not be found.
  \\?\C:\Program Files\Tulpep\Vtul\node_modules\zeromq\build\Release\zeromq.node
      at Object.Module._extensions..node (internal/modules/cjs/loader.js:805:18)
      at Module.load (internal/modules/cjs/loader.js:653:32)
      at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
      at Function.Module._load (internal/modules/cjs/loader.js:585:3)
      at Module.require (internal/modules/cjs/loader.js:690:17)
      at require (internal/modules/cjs/helpers.js:25:18)
      at load (C:\Program Files\Tulpep\Vtul\node_modules\node-gyp-build\index.js:20:10)
      at Object.<anonymous> (C:\Program Files\Tulpep\Vtul\node_modules\zeromq\lib\native.js:6:43)
      at Module._compile (internal/modules/cjs/loader.js:776:30)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10) }

Tested on

  • OS: Windows 10 1909
  • ZeroMQ.js version: 6.0.0-beta6

koraniar avatar Mar 14 '20 02:03 koraniar