galkahana / HummusJS

Node.js module for high performance creation, modification and parsing of PDF files and streams
http://www.pdfhummus.com
Other
1.15k stars 169 forks source link

Something is wrong,when i upgrade my node to 10x. #330

Open JarvisQJ opened 6 years ago

JarvisQJ commented 6 years ago

Error: The module '\\?\E:\formal\server\node_modules\hummus\binding\hummus.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 57. This version of Node.js requires
NODE_MODULE_VERSION 64. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:718:18)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (E:\formal\server\node_modules\hummus\hummus.js:5:31)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (E:\formal\server\node_modules\hummus-recipe\lib\Recipe.js:1:78)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
galkahana commented 6 years ago

wanna try: for instance, using "npm rebuild" or "npm install"?

ggaabe commented 5 years ago

npm rebuild hummus --build-from-source is what worked for me

YOO629 commented 5 years ago

npm rebuild and npm install didn't work for me in this case. using @ggaabe 's suggestion of npm rebuild hummus --build-from-source worked fine

i was also upgrading my node v, but from 6.9.0 to 8.1.4

galkahana commented 5 years ago

you can also uninstall and reinstall. problem is that changes in node version may lead to change in underlying binary code. hummus being binary itself, will need a different binary payload to fit the new node version.