apex / apex/capture

Error: spawnSync ./phantomjs ENOENT

Aperta
#6 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
108
Fork
6
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hi tj,

Sorry for dig this out, I got `Error: spawnSync ./phantomjs ENOENT` error when I try to run capture locally via `node script.js`, (script.js is basically the index.js of capture, and I did put phantomjs and convert.js in the same directory). Could you please give me a hint where the problem might be? Thank you.

```js
const proc = require('child_process')

const args = ['convert.js', JSON.stringify({
'url': 'https://google.com',
'backgroundColor': 'white',
'format': 'jpeg'
})]
const capture = proc.execFileSync('./phantomjs', args).toString()
console.log(capture)
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.