question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

react-native-scripts start stuck at "Starting packager..."

See original GitHub issue

Description

I can’t start any CRNA project because it get stuck at “Starting packager”, i tried many project but the problem still remains. It always get stuck at “Starting packager…”

Expected Behavior

It should start the project and show me the expo QR code

Observed Behavior

Stuck at “Starting packager…”

Note

npm shows me an unmet dependency error with expo and react: npm ERR! peer dep missing: react@>=15.3.1, required by lottie-react-native@1.1.1 npm ERR! peer dep missing: react@>=15.4.0, required by react-native-branch@2.0.0-beta.3

Environment

  • npm ls react-native-scripts: react-native-scripts@1.1.0
  • npm ls react-native: react-native@0.46.4
  • npm ls expo: expo@19.0.1
  • node -v: v7.10.0
  • npm -v: 4.2.0
  • yarn --version: 0.24.5
  1. Operating system: Ubuntu 16.04

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:29
  • Comments:60 (3 by maintainers)

github_iconTop GitHub Comments

58reactions
dhruvduttcommented, Oct 17, 2017

Try

echo 999999 | sudo tee -a /proc/sys/fs/inotify/max_user_watches && echo 999999 | sudo tee -a /proc/sys/fs/inotify/max_queued_events && echo 999999 | sudo tee -a /proc/sys/fs/inotify/max_user_instances && echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

If it’s still stuck, then install watchman from here and do this

watchman watch-del-all && watchman shutdown-server
24reactions
nathan-osmancommented, Aug 29, 2017

I’m seeing this problem as well.

Host: Ubuntu 17.04 64-bit Node: 8.4.0 NPM: 4.6.1 create-react-native-app: 1.0.0

Creating the project:

$ create-react-native-app myapp
...
npm WARN react-redux@5.0.6 requires a peer of react@^0.14.0 || ^15.0.0-0 || ^16.0.0-0 but none was installed.
...
npm WARN react-native-gesture-handler@1.0.0-alpha.17 requires a peer of react@>= 16.0.0 but none was installed.
npm WARN react-native-branch@2.0.0-beta.3 requires a peer of react@>=15.4.0 but none was installed.
npm WARN lottie-react-native@1.1.1 requires a peer of react@>=15.3.1 but none was installed.

Attempting to start Expo:

$ npm start

> myapp@0.1.0 start path/to/myapp
> react-native-scripts start

11:59:53: Starting packager...

…and nothing happens after that. No QR code. Nothing.

I tried running:

$ sudo sysctl -w fs.inotify.max_user_instances=1024
fs.inotify.max_user_instances = 1024
$ sudo sysctl -w fs.inotify.max_user_watches=12288
fs.inotify.max_user_watches = 12288

…and installing watchman. Neither made any difference.

Read more comments on GitHub >

github_iconTop Results From Across the Web

react-native-scripts start stuck at "Starting packager..." #343
Description I can't start any CRNA project because it get stuck at "Starting packager", i tried many project but the problem still remains....
Read more >
React Native STUCK starting packager - Stack Overflow
I had the same issue. I solved it by changing react-native-scripts version from "^1.14.1" to "1.14.0" and run npm install again.
Read more >
stuck at Starting packager... - Robin's Blog
Recently I started to learn react-native app development from zero. ... and this: react-native-scripts start stuck at “Starting packager…”.
Read more >
Packager Won't Start After React Native Update - ADocLib
Description.I can't start any CRNA project because it get stuck at Starting packager i tried many project but the problem still remains. Light...
Read more >
npm start not working in vs code terminal - You.com
You can find those NPM scripts in package.json in the root folder, in a property named scripts . ... Description. npm start gets...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found