Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module './binding.node' #8

Open
sarscoders opened this issue Nov 24, 2020 · 1 comment
Open

Cannot find module './binding.node' #8

sarscoders opened this issue Nov 24, 2020 · 1 comment

Comments

@sarscoders
Copy link

Error: Cannot find module './binding.node'
Require stack:

  • E:\nodejs\reed-solomon-master\benchmark.js
    �[90m at Function.Module._resolveFilename (internal/modules/cjs/loader.js:982:15)�[39m
    �[90m at Function.Module._load (internal/modules/cjs/loader.js:864:27)�[39m
    �[90m at Module.require (internal/modules/cjs/loader.js:1044:19)�[39m
    �[90m at require (internal/modules/cjs/helpers.js:77:18)�[39m
    at Object. (E:\nodejs\reed-solomon-master\benchmark.js:8:19)
    �[90m at Module._compile (internal/modules/cjs/loader.js:1158:30)�[39m
    �[90m at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)�[39m
    �[90m at Module.load (internal/modules/cjs/loader.js:1002:32)�[39m
    �[90m at Function.Module._load (internal/modules/cjs/loader.js:901:14)�[39m
    �[90m at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)�[39m {
    code: �[32m'MODULE_NOT_FOUND'�[39m,
    requireStack: [ �[32m'E:\nodejs\reed-solomon-master\benchmark.js'�[39m ]
    }

I am getting Cannot find module './binding.node' error you have used
var ReedSolomon = require('./binding.node'); code in line no 5 of test.js code

@HanzCEO
Copy link

HanzCEO commented Apr 9, 2024

Run node-gyp rebuild in the package directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants