Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/livioso/react-native-kill-packager
🚀 Kills React Native packager listing on port 8081.
https://github.com/livioso/react-native-kill-packager
Last synced: about 1 month ago
JSON representation
🚀 Kills React Native packager listing on port 8081.
- Host: GitHub
- URL: https://github.com/livioso/react-native-kill-packager
- Owner: livioso
- License: isc
- Created: 2016-08-27T14:42:48.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-08-27T15:26:47.000Z (over 8 years ago)
- Last Synced: 2024-12-02T10:53:50.657Z (about 1 month ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/react-native-kill-packager
- Size: 3.91 KB
- Stars: 21
- Watchers: 1
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-react-native - react-native-kill-packager ★15 - kill running react native packager. (Components / Build & Development)
- awesome-react-native - react-native-kill-packager ★15 - kill running react native packager. (Components / Build & Development)
- awesome-react-native - react-native-kill-packager ★15 - kill running react native packager. (Components / Build & Development)
- awesome-react-native-ui - react-native-kill-packager ★4 - kill running react native packager. (Components / Build & Development)
- awesome-react-native - react-native-kill-packager ★15 - kill running react native packager. (Components / Build & Development)
README
# 💣 react-native-kill-packager
*Kill the React Native Packager running on port 8081.*
Simply run `react-native-kill-packager` when you encounter this:
```
ERROR Packager can't listen on port 8081Most likely another process is already using this port
Run the following command to find out which process:lsof -n -i4TCP:8081
You can either shut down the other process:
kill -9
or run packager on different port.
```
You can add it as an npm script and run `npm run packager:kill` or `npm run packager:restart`:
```
"scripts": {
"packager:kill": "react-native-kill-packager",
"packager:restart": "react-native-kill-packager; npm start",
};
```## Installation
```
npm install --save-dev react-native-kill-packager
```## Credits
[Livio Bieri](https://github.com/livioso/) 🚀