Skip to content
This repository has been archived by the owner on Jun 20, 2020. It is now read-only.

getaddrinfo ENOTFOUND #6

Closed
chenhm123 opened this issue Sep 27, 2017 · 5 comments
Closed

getaddrinfo ENOTFOUND #6

chenhm123 opened this issue Sep 27, 2017 · 5 comments

Comments

@chenhm123
Copy link

hi , when i run the demo, it appears Error: getaddrinfo ENOTFOUND localhost undefined:9222

@chenhm123 chenhm123 reopened this Sep 27, 2017
@chenhm123 chenhm123 reopened this Sep 27, 2017
@paps
Copy link
Member

paps commented Sep 27, 2017

Can you please describe with more detail the steps needed to trigger this error?

@chenhm123
Copy link
Author

well.when i run the demo in the company ,the console appears
Something went wrong: could not connect to chrome debugger after 40 tries (10s): Error: getaddrinfo ENOTFOUND localhost undefined:9222
then i think it's port(9222) needs add 'sudo' to execute.but it doesn't work.. it appears
Something went wrong: could not start chrome: Error: spawn google-chrome-unstable ENOENT

however , i run it at home , it works well now
maybe something wrong with network

@chenhm123
Copy link
Author

sorry..my english is very poor
i want to set up a automate test platform, i had use phantomjs-node complete a little of work, but it's very unusefulness .. today i find casperjs and your nickjs ,,i think nickjs is friendlier

@paps
Copy link
Member

paps commented Sep 27, 2017

Ok thanks. I think the problem might come from your CHROME_PATH environment variable. You have to set this to the exact path of your Google Chrome binary, for example something like /Applications/Google Chrome.app/Contents/MacOS/Google Chrome if you're using macOS.

@chenhm123
Copy link
Author

no, no ~
i find the problem today, because my mac uses Cable adapter for network, i think it change the ip, result in the server go wrong

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants