pixelnest / presskit.html

Re-implementation of presskit() as a static site generator
http://pixelnest.io/2017/03/presskit-html/
MIT License
306 stars 51 forks source link

Error: The module 'sharp.node' was compiled against a different Node.js #14

Closed JOY closed 5 years ago

JOY commented 5 years ago

Please help.

E:\Google Drive\Imba\Marketing\Web\presskit.html-master\data>presskit build
internal/modules/cjs/loader.js:730
  return process.dlopen(module, path.toNamespacedPath(filename));
                 ^

Error: The module '\\?\C:\Users\USER\AppData\Roaming\npm\node_modules\presskit\node_modules\sharp\build\Release\sharp.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:730:18)
    at Module.load (internal/modules/cjs/loader.js:600:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
    at Function.Module._load (internal/modules/cjs/loader.js:531:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Object.<anonymous> (C:\Users\USER\AppData\Roaming\npm\node_modules\presskit\node_modules\sharp\lib\constructor.js:10:15)
    at Module._compile (internal/modules/cjs/loader.js:701:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
    at Module.load (internal/modules/cjs/loader.js:600:32)
zvinless commented 5 years ago

The sharp dependency version needs to be updated to support Node 12. Until then, you'll need to use Node <= 11

JOY commented 5 years ago

Im using node 10

On Tue, May 7, 2019, 10:25 Zach Vinless notifications@github.com wrote:

The sharp dependency version needs to be updated to support Node 12. Until then, you'll need to use Node <= 11

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pixelnest/presskit.html/issues/14#issuecomment-489893017, or mute the thread https://github.com/notifications/unsubscribe-auth/ABGLLM33FHZ4E36B4DUOOTLPUDZAZANCNFSM4HK327PA .

solarsailer commented 5 years ago

The dependencies have been updated. Give it a try. ;)