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

No QR code is generated when doing npm start.....i m on ubuntu with npm3 and node6 #335

Closed
therovermind opened this issue Jul 28, 2017 · 9 comments

Comments

@therovermind
Copy link

therovermind commented Jul 28, 2017

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.

@fson
Copy link
Contributor

fson commented Jul 28, 2017

@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!

@therovermind
Copy link
Author

@fson hey,any progress

@yacineblr
Copy link

yacineblr commented Jul 29, 2017

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)`

@jonching
Copy link

jonching commented Jul 29, 2017

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

@bganicky
Copy link

Hi, possibly related to #234. This comment was helpful for me: #234 (comment)

@shivendrasoni
Copy link

@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

@alexandre-thauvin
Copy link

Hi,

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

image

@brentvatne
Copy link
Member

try this #234 (comment)

@chitrajoshi
Copy link

chitrajoshi commented Mar 8, 2018

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. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants