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

Unable to stop Metro Bundler correctly [Windows] #20633

Closed
3 tasks done
MoKhajavi75 opened this issue Aug 12, 2018 · 7 comments
Closed
3 tasks done

Unable to stop Metro Bundler correctly [Windows] #20633

MoKhajavi75 opened this issue Aug 12, 2018 · 7 comments
Labels
Platform: Windows Building on Windows. Stale There has been a lack of activity on this issue and it may be closed soon. Tech: Bundler 📦 This issue is related to the bundler (Metro, Haul, etc) used.

Comments

@MoKhajavi75
Copy link

MoKhajavi75 commented Aug 12, 2018

Environment

[skip envinfo]

Environment:
  OS: Windows 8.1
  Node: 8.11.2
  Yarn: 1.7.0
  npm: 6.1.0
  Watchman: Not Found
  Xcode: N/A
  Android Studio: Version  2.3.0.0 AI-162.3871768

Packages: (wanted => installed)
  react: 16.3.1 => 16.3.1
  react-native: 0.55.4 => 0.55.4

UPDATE:

E:\React Native\AirFreight>react-native -v
react-native-cli: 2.0.1
react-native: 0.56.0

E:\React Native\AirFreight>react-native info
Scanning folders for symlinks in E:\React Native\AirFreight\node_modules (25ms)

  React Native Environment Info:
    System:
      OS: Windows 8.1
      CPU: x64 Intel(R) Core(TM) i7-4710HQ CPU @ 2.50GHz
      Memory: 13.07 GB / 15.92 GB
    Binaries:
      Yarn: 1.7.0 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
      npm: 6.1.0 - C:\Program Files\nodejs\npm.CMD
    IDEs:
      Android Studio: Version  2.3.0.0 AI-162.3871768

Description

I use npm start to start developing and when I want to stop my work, I use Ctrl + c to stop it (I use this way for a year). That was ok but it's been a while that i can't use npm start:

ERROR Metro Bundler can't listen on port 8081

I've run EVERY command I found on the net such as netstat -abon | findstr ":8081" to find the process but no result.

By the way, I tried new port and use react-native start --port=8082 but again, after using Ctrl + c OR closing the cmd, I can't use that port again. I used 8082, 8083 and 6969 but I think it's not the correct way to stop that!

Reproducible Demo

...

@react-native-bot
Copy link
Collaborator

Can you reproduce the issue on the latest release, v0.56?

@MoKhajavi75
Copy link
Author

@hramos

@hramos
Copy link
Contributor

hramos commented Aug 17, 2018

@MohamadKh75: #20633 (comment)

@MoKhajavi75
Copy link
Author

MoKhajavi75 commented Aug 17, 2018

@hramos i upgraded to 0.56 and bug exists.

@hramos hramos added Platform: Windows Building on Windows. 🔧Tooling Tech: Bundler 📦 This issue is related to the bundler (Metro, Haul, etc) used. labels Aug 17, 2018
@hramos
Copy link
Contributor

hramos commented Aug 17, 2018

Can you update your post? It still says 0.55.4, you can re-run react-native info to get updated numbers.

@MoKhajavi75
Copy link
Author

MoKhajavi75 commented Aug 18, 2018

@hramos i tried react-native info but i didn't see the RN version there so i added react-native -v - Updated!
Could you please remove the Old Version tag?

@MoKhajavi75 MoKhajavi75 changed the title Stop Metro Bundler correctly [Windows] Unable to stop Metro Bundler correctly [Windows] Aug 18, 2018
@stale
Copy link

stale bot commented Dec 10, 2018

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Dec 10, 2018
@facebook facebook locked as resolved and limited conversation to collaborators Dec 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Platform: Windows Building on Windows. Stale There has been a lack of activity on this issue and it may be closed soon. Tech: Bundler 📦 This issue is related to the bundler (Metro, Haul, etc) used.
Projects
None yet
Development

No branches or pull requests

3 participants