React Native Error: ENOSPC: System limit for number of file watchers reached

I am new to React Native and doing a react native training. I am trying to setup a new blank react native app.

After installing few node modules I got this error.

Running application on PGN518.
internal/fs/watchers.js:173
   throw error;
   ^

Error: ENOSPC: System limit for number of file watchers reached, watch '/home/badis/Desktop/react-native/albums/node_modules/.staging'
   at FSWatcher.start (internal/fs/watchers.js:165:26)
   at Object.watch (fs.js:1253:11)
   at NodeWatcher.watchdir (/home/badis/Desktop/react-native/albums/node modules/sane/src/node watcher. js:175:20)
   at NodeWatcher.<anonymous> (/home/badis/Desktop/react-native/albums/node modules/sane/src/node watcher. js:310:16)
   at /home/badis/Desktop/react-native/albums/node modules/graceful-fs/polyfills.js:285:20
   at FSReqWrap.oncomplete (fs.js:154:5)

I know it's related to no enough space for watchman to watch for all file changes.

I want to know what's the best course of action to take here ?

Should I ignore node_modules folder by adding it to .watchmanconfig ?

How is this an Arduino programming question???

Hi, @raamkashyapp
Welcome to the forum.

Some Arduino relevant data would be a great help.

Thanks.. Tom.. :smiley: :+1: :coffee: :australia:

ohhh, Have I done something wrong? what should I do now? I am facing issue and I thought Ardunio is the best place to get the answer to my query. :slightly_frowning_face:

React Native is not an Arduino technology. why would you think this Arduino related forum (C++, electronics, ..) is the best place for such a question.

there're different ways to get React Native help, see Overview · React Native

Thanks J-M-L for your time and consideration. :slightly_smiling_face: :pray:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.