Package Details: nodejs-decktape 3.1.0-1

Git Clone URL: (read-only, click to copy)
Package Base: nodejs-decktape
Description: PDF exporter for HTML presentation frameworks
Upstream URL:
Licenses: MIT
Submitter: pat-s
Maintainer: mehalter
Last Packager: mehalter
Votes: 3
Popularity: 0.000000
First Submitted: 2018-03-09 22:09
Last Updated: 2020-12-26 04:55

Latest Comments

1 2 Next › Last »

bart_janssens commented on 2021-05-10 15:03

Regarding the "could not find browser" error: I worked around this by installing the Arch chromium package and then running with:

PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium decktape ...

No idea how to solve it properly in the package, ideally the bundled chromium should be used.

lillemets commented on 2021-04-30 06:00

I get the error below when trying to run it. Perhaps it's missing a dependency?

Error: Could not find browser revision 768783. Run "npm install" or "yarn install" to download a browser binary.
    at ChromeLauncher.launch (/usr/lib/node_modules/decktape/node_modules/puppeteer/lib/cjs/node/Launcher.js:86:23)
    at async /usr/lib/node_modules/decktape/decktape.js:193:19

TheGoliath commented on 2020-06-08 13:13

@Alfred456654 Updated the package :)

Alfred456654 commented on 2020-06-08 11:54

PKGBUILD for v3.0.0:

# Maintainer: Patrick Schratz <>
# Adapted from nodejs-mkdirp

pkgdesc='PDF exporter for HTML presentation frameworks'
depends=('npm' 'nodejs')

package() {
  local _npmdir="$pkgdir/usr/lib/node_modules/"
  mkdir -p $_npmdir
  cd $_npmdir
  npm install --user root -g --prefix "$pkgdir/usr" $_npmname@$pkgver

  find "$pkgdir/usr/bin" -type d -exec chmod 755 '{}' +
  find "$pkgdir/usr/lib/node_modules" -type d -exec chmod -R 755 '{}' +

  install -Dm0644 "$pkgdir/usr/lib/node_modules/$_npmname/LICENSE" \

dcaixinha commented on 2020-04-13 12:05

Have the same error as the one reported by @plaxx.

plaxx commented on 2020-02-17 15:12

Can't build node-gyp:

node-pre-gyp WARN Using needle for node-pre-gyp https download 
node-pre-gyp WARN Tried to download(404): 
node-pre-gyp WARN Pre-built binaries not found for hummus@1.0.108 and node@13.8.0 (node-v79 ABI, glibc) (falling back to source compile with node-gyp) 


../src/PDFDictionaryDriver.cpp: In static member function ‘static void PDFDictionaryDriver::ToJSObject(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/PDFDictionaryDriver.cpp:78:110: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, v8::Local<v8::Value>)’
   78 |         result->Set(NEW_STRING(it.GetKey()->GetValue().c_str()),driver->holder->GetInstanceFor(it.GetValue()));
      |                                                                                                              ^
In file included from /home/olivier/.cache/node-gyp/13.8.0/include/node/node.h:63,
                 from ../src/nodes.h:3,
                 from ../src/PDFDictionaryDriver.h:22,
                 from ../src/PDFDictionaryDriver.cpp:20:
/home/olivier/.cache/node-gyp/13.8.0/include/node/v8.h:3547:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
 3547 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
      |                                     ^~~
/home/olivier/.cache/node-gyp/13.8.0/include/node/v8.h:3547:37: note:   candidate expects 3 arguments, 2 provided
/home/olivier/.cache/node-gyp/13.8.0/include/node/v8.h:3550:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
 3550 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
      |                                     ^~~
/home/olivier/.cache/node-gyp/13.8.0/include/node/v8.h:3550:37: note:   candidate expects 3 arguments, 2 provided
/home/olivier/.cache/node-gyp/13.8.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
/home/olivier/.cache/node-gyp/13.8.0/include/node/node_object_wrap.h:85:78:   required from here
/home/olivier/.cache/node-gyp/13.8.0/include/node/v8.h:10400:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
10400 |                reinterpret_cast<Callback>(callback), type);
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [ Release/] Error 1
make: Leaving directory '/home/olivier/.cache/aurman/nodejs-decktape/pkg/nodejs-decktape/usr/lib/node_modules/decktape/node_modules/hummus/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:321:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Linux 4.19.101-1-lts

pat-s commented on 2019-10-13 13:48

@meriops I think I resolved it. You might need to uninstall/install the package to get rid of the messages.

meriops commented on 2019-10-09 17:16

With the latest version, I get the warning "directory permissions differ (...) filesystem 755 package 777". Anybody else gets that?

pat-s commented on 2018-05-29 15:39

We currently have problems to get the package building with the latest version. Actively working on it here:

paulmelis commented on 2018-05-29 11:30

Different error here:

make: Leaving directory '/home/paulm/aur/nodejs-decktape/pkg/nodejs-decktape/usr/lib/node_modules/decktape/node_modules/hummus/build'

puppeteer@0.12.0 install /home/paulm/aur/nodejs-decktape/pkg/nodejs-decktape/usr/lib/node_modules/decktape/node_modules/puppeteer node install.js

Downloading Chromium r508693 - 96.2 Mb [====================] 100% 0.0s Chromium downloaded to /home/paulm/aur/nodejs-decktape/pkg/nodejs-decktape/usr/lib/node_modules/decktape/node_modules/puppeteer/.local-chromium/linux-508693 + decktape@2.8.0 added 97 packages from 51 contributors in 32.598s rmdir: failed to remove '/home/paulm/aur/nodejs-decktape/pkg/nodejs-decktape/usr/etc': No such file or directory ==> ERROR: A failure occurred in package(). Aborting...