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

ng serve connect ETIMEDOUT #2755

Closed
bafinneg opened this issue Oct 18, 2016 · 15 comments
Closed

ng serve connect ETIMEDOUT #2755

bafinneg opened this issue Oct 18, 2016 · 15 comments

Comments

@bafinneg
Copy link

Please provide us with the following information:

OS?

macOS Sierra

Versions.

angular-cli: 1.0.0-beta.17
node: 6.5.0
os: darwin x64

Repro steps.

ng new test
cd test
ng serve

The log given by the failure.

Could not start watchman; falling back to NodeWatcher for file system events.
Visit http://ember-cli.com/user-guide/#watchman for more info.
Error: connect ETIMEDOUT fd00:9ca4:7675:4e2e:7153:a688:b525:2149:4200
at Object.exports._errnoException (util.js:1026:11)
at exports._exceptionWithHostPort (util.js:1049:20)
at TCPConnectWrap.afterConnect as oncomplete

Mention any other details that might be useful.

Hello!

Today I've been encountering a timeout when trying to run ng serve on a new (or ng init) project.

ng build works fine
ng serve in my existing projects work fine

Uninstalled & reinstalled angular cli using the instruction, no change.
Not sure what's causing the timeout on this go around. No recent updates to my dev environment.
Thank you!


Thanks! We'll be in touch soon.

@bafinneg bafinneg changed the title ng servee connect ETIMEDOUT ng serve connect ETIMEDOUT Oct 18, 2016
@decooliveira
Copy link

I'm going through the same problem.

@haninaguib
Copy link

Same here

@nemec784
Copy link

nemec784 commented Oct 18, 2016

Same problem

angular-cli: 1.0.0-beta.17
node: 6.8.1
os: darwin x64

@haninaguib
Copy link

ps: Still cant find a solution (not even sure what the problem is).
I am not running behind a proxy or anything strange.

OS X: 10.11.6 (El Capitan)
angular-cli: 1.0.0-beta.14 (also tried beta.17)
node: 6.8.1
os: darwin x64

It is a new project. (ie created via ng new today)
Existing projects are working.

@b091
Copy link

b091 commented Oct 18, 2016

I think it's because some of the angular-cli dependency which was automatically updated because of "^version".

If you will delete ./node_modules and make npm install your existing project will get the same issue ;)

I dont know which one yet

@bafinneg
Copy link
Author

Good find @b091! That's a good lead.
I wonder if fixing up package.json would could be a workaround? I'll be able to try it tomorrow.

@haninaguib same here no proxy on my end either.

@nikejaycn
Copy link

Same problem in the new ng project.
the old project working well.

os: macOS Sierra
angular-cli: 1.0.0-beta.17
node: 6.8.1
os: darwin x64

@b091
Copy link

b091 commented Oct 18, 2016

portfinder is an issue it works with 1.0.7 it's not working with 1.0.8

@nemec784
Copy link

Yep,

npm install [email protected]

solves the problem

@l3bel
Copy link

l3bel commented Oct 18, 2016

Same here.
Turning WiFi off before issuing "ng serve" works for me

@l3bel
Copy link

l3bel commented Oct 18, 2016

@b091, @nemec784 , npm install [email protected] works, thanks !

maybe a clue, maybe not, but with wifi off (read: machine IP is 127.0.0.1), the server starts without issues, even without downgrading portfinder to 1.0.7
npm install [email protected] definitely worked for me
os: macOS Sierra
angular-cli: 1.0.0-beta.17
node: 6.8.1
os: darwin x64

@mikedsharp
Copy link

mikedsharp commented Oct 18, 2016

Just wanted to note that prior to running
npm install [email protected] (which worked for me), my ng serve would just hang, this is definitely an issue in beta 17

Projects created with previous versions run fine.

I'm running OSX Yosemite

@b091
Copy link

b091 commented Oct 19, 2016

portfinder 1.0.9 released it's working now. You can close this issue ;)

duplicating #2769

filipesilva added a commit to filipesilva/angular-cli that referenced this issue Oct 22, 2016
This PR explicitely adds portfinder as a dependency.

We're using portfinder in the serve command but getting it transitively as a ember-cli dependency.

Fix angular#2755
Fix angular#2769
@filipesilva
Copy link
Contributor

Dupe of #2769, fixed by #2831

hansl pushed a commit that referenced this issue Nov 9, 2016
This PR explicitely adds portfinder as a dependency.

We're using portfinder in the serve command but getting it transitively as a ember-cli dependency.

Fix #2755
Fix #2769
MRHarrison pushed a commit to MRHarrison/angular-cli that referenced this issue Feb 9, 2017
This PR explicitely adds portfinder as a dependency.

We're using portfinder in the serve command but getting it transitively as a ember-cli dependency.

Fix angular#2755
Fix angular#2769
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
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

9 participants