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.

An error when run command 'npm start'

See original GitHub issue

ERROR watch EMFILE 2015-07-08 20:07 node24221 FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21) {“code”:“EMFILE”,“errno”:“EMFILE”,“syscall”:“watch”} 2015-07-08 20:07 node24221 FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21) 2015-07-08 20:07 node24221 FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21) Error: watch EMFILE at errnoException (evalmachine.<anonymous>:1030:11) at FSWatcher.start (evalmachine.<anonymous>:1062:11) at Object.fs.watch (evalmachine.<anonymous>:1087:11) at NodeWatcher.watchdir (/Users/chaos/facebook/react-native/node_modules/sane/src/node_watcher.js:144:20) at Walker.<anonymous> (/Users/chaos/facebook/react-native/node_modules/sane/src/node_watcher.js:351:12) at Walker.emit (events.js:98:17) at /Users/chaos/facebook/react-native/node_modules/sane/node_modules/walker/lib/walker.js:69:16 at ReaddirReq.Req.done (/Users/chaos/facebook/react-native/node_modules/graceful-fs/graceful-fs.js:141:5) at ReaddirReq.done (/Users/chaos/facebook/react-native/node_modules/graceful-fs/graceful-fs.js:88:22) at Object.oncomplete (evalmachine.<anonymous>:107:15)

See http://facebook.github.io/react-native/docs/troubleshooting.html 2015-07-08 20:07 node24221 for common problems and solutions. FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21) 2015-07-08 20:07 node24221 FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21) 2015-07-08 20:07 node24221 FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21) 2015-07-08 20:07 node24221 FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21) 2015-07-08 20:07 node24221 FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21) 2015-07-08 20:07 node24221 FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21) 2015-07-08 20:07 node24221 FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21) 2015-07-08 20:07 node24221 FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21) 2015-07-08 20:07 node24221 FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21) 2015-07-08 20:07 node24221 FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21)

evalmachine.<anonymous>:438 2015-07-08 20:07 node24221 FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21) return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode); ^ 2015-07-08 20:07 node24221 FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21) 2015-07-08 20:07 node24221 FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21) 2015-07-08 20:07 node24221 FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21) 2015-07-08 20:07 node24221 FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21) 2015-07-08 20:07 node24221 FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21) 2015-07-08 20:07 node24221 FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21) Error: EMFILE, too many open files ‘/Users/chaos/.babel.json’ at Object.fs.openSync (evalmachine.<anonymous>:438:18) at Object.fs.writeFileSync (evalmachine.<anonymous>:977:15) at process.save (/Users/chaos/facebook/react-native/node_modules/babel-core/lib/babel/api/register/cache.js:36:19) at process.emit (events.js:95:17) at process.exit (node.js:711:17) at process.req.rawBody (/Users/chaos/facebook/react-native/packager/packager.js:151:11) at process.emit (events.js:95:17) at process._fatalException (node.js:272:26)

npm ERR! Darwin 14.4.0 npm ERR! argv “node” “/usr/local/bin/npm” “start” npm ERR! node v0.10.33 npm ERR! npm v2.1.8 npm ERR! code ELIFECYCLE npm ERR! react-native@0.6.0 start: ./packager/packager.sh npm ERR! Exit status 7 npm ERR! npm ERR! Failed at the react-native@0.6.0 start script ‘./packager/packager.sh’. npm ERR! This is most likely a problem with the react-native package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! ./packager/packager.sh npm ERR! You can get their info via: npm ERR! npm owner ls react-native npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /Users/chaos/facebook/react-native/Examples/SampleApp/npm-debug.log

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:6

github_iconTop GitHub Comments

4reactions
lamer-afkcommented, Jul 9, 2015

when i run command ‘brew install watchman’,it’s ok…

0reactions
iggiedcommented, Sep 20, 2015

brew install watchman Worked for me too. Please update your docs

Read more comments on GitHub >

github_iconTop Results From Across the Web

Start script missing error when running npm start
App with the scripts was in folder B. Folder B was in folder A. I open folder A in vscode and enter "npm...
Read more >
npm err! missing script: start Solution - Career Karma
Want to adress the npm err! missing script: starterror? Read this guide on how to troubleshoot and fix this error.
Read more >
scripts - npm Docs
The dependencies script is run any time an npm command causes changes to the node_modules directory. It is run AFTER the changes have...
Read more >
Get error when execute "npm start" command. #114 - GitHub
I follow the instruction and got this problem when running "npm start" command. AFAIK, root cause of this error is "npm-run-all" was not ......
Read more >
Start script missing error when running npm start - Edureka
I have been constantly receiving this error when trying to debug my node application using the npm start command. Error: npm ERR!
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