apex / apex/capture

Error: spawnSync ./phantomjs ENOENT

Open
#6 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
108
Forks
6
PR merge metrics
No merged PRs in 30d

Description

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)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.