question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

After installing decktape I got following error:

See original GitHub issue
decktape -h
module.js:538
    throw err;
    ^

Error: Cannot find module '/usr/lib/node_modules/decktape/node_modules/hummus/binding/hummus.node'
    at Function.Module._resolveFilename (module.js:536:15)
    at Function.Module._load (module.js:466:25)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/usr/lib/node_modules/decktape/node_modules/hummus/hummus.js:5:31)
    at Module._compile (module.js:635:30)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ottlukascommented, Nov 21, 2017

That solved the issue:

 /usr/lib/node_modules/decktape/node_modules/hummus $ sudo mkdir binding
/usr/lib/node_modules/decktape/node_modules/hummus $ sudo cp /usr/lib/node_modules/hummus/binding/hummus.node /usr/lib/node_modules/decktape/node_modules/hummus/binding/hummus.node

Result:

 $ decktape -h

Usage: decktape [options] [command] <url> <filename>
       decktape version

command      one of: automatic, bespoke, csss, deck, dzslides, flowtime, generic, impress, remark, reveal, rise, shower-1.x, shower-2.x, slidy, webslides
url          URL of the slides deck
filename     Filename of the output PDF file

Options:
   -s <size>, --size <size>        Size of the slides deck viewport: <width>x<height>  (ex. 1280x720)
   -p <ms>, --pause <ms>           Duration in milliseconds before each slide is exported  [1000]
   --load-pause <ms>               Duration in milliseconds between the page has loaded and starting to export slides  [0]
   --screenshots                   Capture each slide as an image  [false]
   --screenshots-directory <dir>   Screenshots output directory  [screenshots]
   --screenshots-size <size>       Screenshots resolution, can be repeated
   --screenshots-format <format>   Screenshots image format, one of [jpg, png]  [png]
   --slides <range>                Range of slides to be exported, a combination of slide indexes and ranges (e.g. '1-3,5,8')

Defaults to the automatic command.
Iterates over the available plugins, picks the compatible one for presentation at the
specified <url> and uses it to export and write the PDF into the specified <filename>.

Thank you! 😃 👍

0reactions
7Mosescommented, Feb 26, 2018

The above did not work for me or I could not figure it out, but this did:

$ cd /usr/local/lib/node_modules/decktape/node_modules/
$ npm rebuild hummus --update-binary  

(Learnt here: https://stackoverflow.com/questions/45761864/nodejs-how-to-fix-different-node-module-version/45762265#45762265)

… back in production

Read more comments on GitHub >

github_iconTop Results From Across the Web

RISE Documentation
2.1 Installation. Note: To install RISE in development mode, see the Developer Documentation. You essentially have 2 options: 1 - Using conda.
Read more >
Avid NewsCutter Version 4.0 Release Notes - Avid Technology
board after installing the NewsCutter application, see “Installing the Edit ... Depending on the deck tape and connection, the following deck templates.
Read more >
Impact of RISE in teaching with Jupyter - Google Groups
Have you tried using any (wireless) remote control when showing RISE slides? ... I have just installed decktape via npm) as when I...
Read more >
node.js - Puppeteer Error: Chromium revision is not downloaded
I only managed to fix the issue by manually installing Chromium after much searching and trying most of the suggestions:
Read more >
The Keys to Installing MFM Roof Deck Tape
This has caught the eye of several building code agencies who have already implemented codes to seal these seams with a roof deck...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found