Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: spawnSync ./phantomjs ENOENT #6

Open
build1984 opened this issue Jan 8, 2018 · 0 comments
Open

Error: spawnSync ./phantomjs ENOENT #6

build1984 opened this issue Jan 8, 2018 · 0 comments

Comments

@build1984
Copy link

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.

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant