sonicdoe / detect-character-encoding

Detect character encoding using ICU
Other
84 stars 15 forks source link

icuWrapper.node was compiled against a different Node.js version #19

Closed funatsufumiya closed 5 years ago

funatsufumiya commented 5 years ago

I got this error on electron, and tried npm rebuild but nothing changed. How can I fix this?

'/Users/.../node_modules/detect-character-encoding/build/Release/icuWrapper.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 67. This version of Node.js requires
NODE_MODULE_VERSION 73. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
    at process.func (electron/js2c/asar.js:155)
    at process.func [as dlopen] (electron/js2c/asar.js:155)
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:828)
    at Object.func (electron/js2c/asar.js:155)
    at Object.func [as .node] (electron/js2c/asar.js:155)
    at Module.load (internal/modules/cjs/loader.js:645)
    at Function.Module._load (internal/modules/cjs/loader.js:560)
    at Module.require (internal/modules/cjs/loader.js:685)
    at require (internal/modules/cjs/helpers.js:16)
    at bindings (/Users/funatsu/lab/KarteCSVConverter/node_modules/bindings/bindings.js:112)
funatsufumiya commented 5 years ago

Sorry, I'll try electron-rebuild.