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 5001 is not open on localhost, could not start functions emulator. #147

Closed
nazreen opened this issue Feb 8, 2020 · 7 comments
Closed

Comments

@nazreen
Copy link
Member

nazreen commented Feb 8, 2020

when running npm run serve-h

@nazreen
Copy link
Member Author

nazreen commented Feb 8, 2020

@nazreen
Copy link
Member Author

nazreen commented Feb 8, 2020

installing firebase-tools version 7.2.3 does not work as recommended by the above linked thread

@nazreen
Copy link
Member Author

nazreen commented Feb 8, 2020

installing latest version 7.8.1 does not work either

@nazreen
Copy link
Member Author

nazreen commented Feb 8, 2020

tried the below:

after version update, run (if Mac):
sed -i '' 's/stopPort: port/stopPort: port+1/' /usr/local/lib/node_modules/firebase-tools/lib/emulator/controller.js

make sure it's the right path for the global node_modules by checking npm root -g

did not solve

@nazreen
Copy link
Member Author

nazreen commented Feb 8, 2020

just run in on a different port.

this issue might have been local to me.

solution: add flag to usual command like so npm run serve-h -- --port=5003

@nazreen nazreen closed this as completed Feb 8, 2020
@nazreen
Copy link
Member Author

nazreen commented Mar 10, 2020

@lilsweetcaligula did you ever run into this issue? I just experienced it just now

@lilsweetcaligula
Copy link
Collaborator

@nazreen The error message looks oddly familiar but I cannot recall the exact circumstances under which I may have seen it. But my guess is - if running on a different port does resolve the problem, then it's probably the problem of a port being occupied - very likely by another instance of Firebase.

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

2 participants