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

Port in use error #17

Closed
mrberggg opened this issue Jan 11, 2016 · 4 comments
Closed

Port in use error #17

mrberggg opened this issue Jan 11, 2016 · 4 comments

Comments

@mrberggg
Copy link

I'm getting an error intermittently when running npm run start: Error: listen EADDRINUSE :::3002. It appears it's an error caused by that port being currently in use. If I rerun the command it usually works. Not a biggie, just an annoyance. If I knew what was going on I'd be happy to submit a PR. Thanks for your work, love this!

@coryhouse
Copy link
Owner

Yep, this happens in two scenarios:

  1. When you already have the starter kit running on another command line.
  2. The default port is conflicting with some other process on your machine.

You can specify a different port to see if that helps. Add the following to the browserSync call in /tools/server.js:

browserSync({
port: 9080,
ui: {
port: 9081
},

I'm considering adding this to the kit so the configuration is easily available.

@mrberggg
Copy link
Author

I can't find any other processes running on that port which is what was confusing me. But I'll try changing the port, see if that fixes it. Thanks!

Oh and do you take feature requests? It'd be great to have connect-history-api-fallback or some HTML History config (i.e. support for SPA routing).

@nickytonline
Copy link
Collaborator

@mrberggg for routing, see issue #10.

@mrberggg
Copy link
Author

Yeah, I saw that. Including it in the build step doesn't seem opinionated though (doesn't add any weight to final bundle) and it would save a lot of headache in setup. Anyhow, thanks for your work

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

3 participants