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.

[Packager] EM watch error

See original GitHub issue
elgubenis:AwesomeProject lgubenis$ npm start

> AwesomeProject@0.0.1 start /Users/lgubenis/projects/AwesomeProject
> node_modules/react-native/packager/packager.sh

node_modules/react-native/packager/packager.sh: line 16: ulimit: open files: cannot modify limit: Operation not permitted

 ===============================================================
 |  Running packager on port 8081.       
 |  Keep this packager running while developing on any JS         
 |  projects. Feel free to close this tab and run your own      
 |  packager instance if you prefer.                              
 |                                                              
 |     https://github.com/facebook/react-native                 
 |                                                              
 ===============================================================

Looking for JS files in
   /Users/lgubenis/projects/AwesomeProject 


React packager ready.

 ERROR  watch EMFILE
{"code":"EMFILE","errno":"EMFILE","syscall":"watch"}
Error: watch EMFILE
    at exports._errnoException (util.js:746:11)
    at FSWatcher.start (evalmachine.<anonymous>:1172:11)
    at Object.fs.watch (evalmachine.<anonymous>:1198:11)
    at NodeWatcher.watchdir (/Users/lgubenis/projects/AwesomeProject/node_modules/react-native/node_modules/sane/src/node_watcher.js:144:20)
    at Walker.<anonymous> (/Users/lgubenis/projects/AwesomeProject/node_modules/react-native/node_modules/sane/src/node_watcher.js:351:12)
    at Walker.emit (events.js:110:17)
    at /Users/lgubenis/projects/AwesomeProject/node_modules/react-native/node_modules/sane/node_modules/walker/lib/walker.js:69:16
    at ReaddirReq.Req.done (/Users/lgubenis/projects/AwesomeProject/node_modules/react-native/node_modules/graceful-fs/graceful-fs.js:141:5)
    at ReaddirReq.done (/Users/lgubenis/projects/AwesomeProject/node_modules/react-native/node_modules/graceful-fs/graceful-fs.js:88:22)
    at FSReqWrap.oncomplete (evalmachine.<anonymous>:95:15)

See http://facebook.github.io/react-native/docs/troubleshooting.html
for common problems and solutions.

npm ERR! Darwin 14.3.0
npm ERR! argv "node" "/Users/lgubenis/.npm-packages/bin/npm" "start"
npm ERR! node v0.12.4
npm ERR! npm  v2.11.1
npm ERR! code ELIFECYCLE
npm ERR! AwesomeProject@0.0.1 start: `node_modules/react-native/packager/packager.sh`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the AwesomeProject@0.0.1 start script 'node_modules/react-native/packager/packager.sh'.
npm ERR! This is most likely a problem with the AwesomeProject package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node_modules/react-native/packager/packager.sh
npm ERR! You can get their info via:
npm ERR!     npm owner ls AwesomeProject
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/lgubenis/projects/AwesomeProject/npm-debug.log

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
abbothzhangcommented, Oct 22, 2015

Forgot to install watchman. Sorry.

0reactions
1181631922commented, Mar 18, 2016

Failed at the reactnativeactivity@0.0.1 start script ‘node_modules/react-native/packager/packager.sh’. How to solve this problem? `F:\reactnative\Demo1>npm start

reactnativeactivity@0.0.1 start F:\reactnative\Demo1 node_modules/react-native/packager/packager.sh

‘node_modules’ 不是内部或外部命令,也不是可运行的程序
或批处理文件。

npm ERR! Windows_NT 6.3.9600 npm ERR! argv “E:\Program Files\Node\node.exe” “E:\Program Files\Node\node_modules\npm\bin\npm-cli.js” “start” npm ERR! node v5.5.0 npm ERR! npm v3.8.1 npm ERR! code ELIFECYCLE npm ERR! reactnativeactivity@0.0.1 start: node_modules/react-native/packager/packager.sh npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the reactnativeactivity@0.0.1 start script ‘node_modules/react-native/packager/packager.sh’. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the reactnativeactivity package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node_modules/react-native/packager/packager.sh npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs reactnativeactivity npm ERR! Or if that isn’t available, you can get their info via: npm ERR! npm owner ls reactnativeactivity npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! F:\reactnative\Demo1\npm-debug.log `

Read more comments on GitHub >

github_iconTop Results From Across the Web

React native ERROR Packager can't listen on port 8081
On a mac, run the following command to find id of the process which is using port 8081 sudo lsof -i :8081
Read more >
How To fix Parse Error "There was a problem ... - YouTube
How To fix Parse Error : There was a problem parsing the package. ... The same error also occurred in other mobile phones...
Read more >
GlobalVision - Quality Control & Inspection Platform
Watch GlobalVision's First Proofreading & Quality Control Digital Conference The ... GlobalVision instantly catches critical errors, helping companies in ...
Read more >
How to Fix the Error: "The package could not be installed. The ...
Learn how to fix the following error in WordPress: "The package could not be installed. the theme is ... Prefer to watch the...
Read more >
webpack-dev-server - npm
TypeScript icon, indicating that this package has built-in type declarations ... in the browser when there are compiler errors or warnings.
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