Thursday, 25 May 2017

gphoto2 node on Electron

I'm trying to conect to a Ricoh Tetha 2 Camera for an Electron App with no success. I have tried using npm install gphoto2:

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! gphoto2@0.1.7 preinstall: ((which pkg-config && pkg-config libgphoto2) || (which dpkg && dpkg -s libgphoto2-2-dev) || (which brew && brew list libgphoto2) || (echo 'ERROR: libgphoto2 seems not to be installed.' 1>&2; exit 1)) && node-gyp rebuild npm ERR! Exit status 1

but brew install libgphoto2 tells me:

Warning: libgphoto2-2.5.13 already installed.

I have also tried shelljs, to run ptpcam, but on:

shell.exec('ptpcam -list')

I always get:

exec: Unable to find a path to the node binary. Please manually set config.execPath exec: internal error

Seems like there is a problem between shelljs and Electron: https://github.com/shelljs/shelljs/issues/480

Any ideas?



via Marco Chacon

No comments:

Post a Comment