No way to start React Native Packager through Nuclide when port 8081 is in use
Issue and Steps to Reproduce
The default packager port, 8081, is in use by McAfee on my machine (company policy prohibits uninstalling/modifying this). Therefore, I need to run packager on a different port. This is possible when running the packager from the command line (through the "--port" argument), but, as far as I can tell, is not an option when running it through "Nuclide React Native: Start Packager".
This is the output when trying to start packager currently:
Running packager on port 8081. React Native Packager Looking for JS files in: <project path> React Native Packager <START> Building Dependency Graph React Native Packager <START> Crawling File System React Native Packager Packager can't listen on port 8081 React Native Packager Most likely another process is already using this port React Native Packager Run the following command to find out which process: React Native Packager lsof -n -i4TCP:8081 React Native Packager You can either shut down the other process: React Native Packager kill -9 <PID> React Native Packager or run packager on different port. React Native Packager See http://facebook.github.io/react-native/docs/troubleshooting.html React Native Packager for common problems and solutions. React Native Packager An unexpected error occurred while running the React Native Packager process:
Packager exited with non-zero exit code (1)
Expected Behavior
There'd be some way, perhaps through Nuclide Settings, to change the port passed to the packager start command, or generally configure command line arguments for it.
Actual Behavior
The arguments (or lack thereof) seem to be hard-coded in the nuclide-react-native-base package, so the port will always be the default 8081 when starting the packager from Nuclide (only the Node path is configurable). Therefore, the Packager always fails to start.
Versions
- Atom: 1.10.2
- Nuclide: 0.167.1
- Client OS: OS X 10.11.6
Additional Details
- Installed packages (
apm ls --installed):
├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] └── [email protected]
└── (empty)
Source: facebookarchive/nuclide