Package Details: nodejs-decktape 3.10.0-1

Git Clone URL: https://aur.archlinux.org/nodejs-decktape.git (read-only, click to copy)
Package Base: nodejs-decktape
Description: PDF exporter for HTML presentation frameworks
Upstream URL: https://github.com/astefanutti/decktape
Licenses: MIT
Submitter: pat-s
Maintainer: mehalter
Last Packager: mehalter
Votes: 5
Popularity: 0.000005
First Submitted: 2018-03-09 22:09 (UTC)
Last Updated: 2023-09-08 16:01 (UTC)

Latest Comments

1 2 Next › Last »

bart_janssens commented on 2021-05-10 15:03 (UTC)

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 (UTC)

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

Alfred456654 commented on 2020-06-08 11:54 (UTC)

PKGBUILD for v3.0.0:

# Maintainer: Patrick Schratz <patrick.schratz@gmail.com>
# Adapted from nodejs-mkdirp

pkgname=nodejs-decktape
_npmname=decktape
pkgver=3.0.0
pkgrel=0
pkgdesc='PDF exporter for HTML presentation frameworks'
arch=('any')
url='https://github.com/astefanutti/decktape'
license=('MIT')
depends=('npm' 'nodejs')
source=("${_npmname}-${pkgver}.tar.gz::https://github.com/astefanutti/"${_npmname}"/archive/v"${pkgver}".tar.gz")
md5sums=('b8df8d6cf3563ec449dd5b3b415252c9')

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" \
    "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

dcaixinha commented on 2020-04-13 12:05 (UTC)

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

plaxx commented on 2020-02-17 15:12 (UTC)

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): https://hummus.s3-us-west-2.amazonaws.com/hummus/v1.0.108/node-v79-linux-x64-glibc.tar.gz 
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: *** [hummus.target.mk:159: Release/obj.target/hummus/src/PDFDictionaryDriver.o] 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 (UTC)

@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 (UTC)

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 (UTC) (edited on 2018-05-29 15:39 (UTC) by pat-s)

We currently have problems to get the package building with the latest version. Actively working on it here: https://github.com/astefanutti/decktape/issues/136.