Create-react-native-app: No QR code is generated when doing npm start.....i m on ubuntu with npm3 and node6

Created on 28 Jul 2017  路  9Comments  路  Source: expo/create-react-native-app

Please make our job easier by filling this template out to completion. If you're requesting a feature instead of reporting a bug, please feel free to skip the Environment and Reproducible Demo sections.

Description

i created a fresh project using the command create-react-native-app...
then after the execution i did npm start ,after this process got stop(with curson blinking on running packager) and QR code is generated

1-2 sentences describing the problem you're having or the feature you'd like to request

Expected Behavior

i expect a QR code so as to run on my device

What action did you perform, and what did you expect to happen?

Observed Behavior

no files related toandroid generated(index.android.js)..nor for ios

What actually happened when you performed the above actions?

If there's an error message, please paste the full terminal output and error message in this code block:

Error text goes here!

Environment

Please run these commands in the project folder and fill in their results:

  • npm ls react-native-scripts:
  • npm ls react-native:
  • npm ls expo:
  • node -v:6.11.1
  • npm -v:3.10.10
  • yarn --version:
  • watchman version:

Also specify:

  1. Operating system:ubuntu
  2. Phone/emulator/simulator & version:

Reproducible Demo

https://drive.google.com/open?id=0B0514LVH5u7lUDNRbzhWT0N5dUk
https://drive.google.com/open?id=0B0514LVH5u7lWEhsTlZMWWx0bzg

Please provide a minimized reproducible demonstration of the problem you're reporting.

Issues that come with minimal repro's are resolved much more quickly than issues where a maintainer has to reproduce themselves.

awaiting-reply

Most helpful comment

Hi,

I have the same issue, no qr-code generated but the project was compiled.

image

All 9 comments

@therovermind Is this happening in a fresh project created with create-react-native-app? Could you fill in the information in the issue template (especially any error messages, if you're getting them, the environment and if possible, a reproducible demo). This would help the issue get resolved much more quickly. Thanks!

@fson hey,any progress

Hello, i have same bug ... npm start has freeze at -> Starting packager...

When start packager directly with node_modules/react-native/scripts/packager.sh a have error:
`React packager ready.

ERROR watch /home/lenovo/Documents/my-app/node_modules/react-native-maps/lib/android/build/tmp/expandedArchives/classes.jar_e2dz9yli314hkpr218gjso4n3/com/google/android/gms/common/internal ENOSPC
{"code":"ENOSPC","errno":"ENOSPC","syscall":"watch /home/lenovo/Documents/my-app/node_modules/react-native-maps/lib/android/build/tmp/expandedArchives/classes.jar_e2dz9yli314hkpr218gjso4n3/com/google/android/gms/common/internal","filename":"/home/lenovo/Documents/my-app/node_modules/react-native-maps/lib/android/build/tmp/expandedArchives/classes.jar_e2dz9yli314hkpr218gjso4n3/com/google/android/gms/common/internal"}
Error: watch /home/lenovo/Documents/my-app/node_modules/react-native-maps/lib/android/build/tmp/expandedArchives/classes.jar_e2dz9yli314hkpr218gjso4n3/com/google/android/gms/common/internal ENOSPC
at exports._errnoException (util.js:1018:11)
at FSWatcher.start (fs.js:1443:19)
at Object.fs.watch (fs.js:1470:11)
at NodeWatcher.watchdir (/home/lenovo/Documents/my-app/node_modules/jest-haste-map/node_modules/sane/src/node_watcher.js:150:20)
at Walker. (/home/lenovo/Documents/my-app/node_modules/jest-haste-map/node_modules/sane/src/node_watcher.js:374:12)
at emitTwo (events.js:106:13)
at Walker.emit (events.js:191:7)
at /home/lenovo/Documents/my-app/node_modules/walker/lib/walker.js:69:16
at go$readdir$cb (/home/lenovo/Documents/my-app/node_modules/graceful-fs/graceful-fs.js:149:14)
at FSReqWrap.oncomplete (fs.js:123:15)`

same for me when creating a fresh project with create-react-native-app. I'm on ubuntu 16.

@bganicky Thanks a lot man. I was stuck at it for 3 days. Stupid me, should have seen this coming.

For changig file watcher limit:
https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers

Hi,

I have the same issue, no qr-code generated but the project was compiled.

image

I had the same problem, no qrcode generated while npm start command,
The terminal itself mentioned to either install watchman or run the following commands:

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

These commands worked for me. :-)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

andyvanosdale picture andyvanosdale  路  3Comments

JackWReid picture JackWReid  路  4Comments

witbybit picture witbybit  路  4Comments

mwq27 picture mwq27  路  5Comments

noelweichbrodt picture noelweichbrodt  路  3Comments