I tried to run the code using npm start
but it isn’t working. Can someone please help me with this?
Starting the development server...
/home/npm-global/lib/node_modules/react-scripts/scripts/start.js:19
throw err;
^
***Error: EMFILE: too many open files,*** watch '/home/coder/project/reactlab/public'
at FSWatcher.<computed> (internal/fs/watchers.js:243:19)
at Object.watch (fs.js:1587:34)
at createFsWatchInstance (/home/npm-global/lib/node_modules/react-scripts/node_modules/chokidar/lib/nodefs-handler.js:119:15)
at setFsWatchListener (/home/npm-global/lib/node_modules/react-scripts/node_modules/chokidar/lib/nodefs-handler.js:166:15)
at NodeFsHandler._watchWithNodeFs (/home/npm-global/lib/node_modules/react-scripts/node_modules/chokidar/lib/nodefs-handler.js:331:14)
at NodeFsHandler._handleDir (/home/npm-global/lib/node_modules/react-scripts/node_modules/chokidar/lib/nodefs-handler.js:567:19)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async NodeFsHandler._addToNodeFs (/home/npm-global/lib/node_modules/react-scripts/node_modules/chokidar/lib/nodefs-handler.js:617:16)
at async /home/npm-global/lib/node_modules/react-scripts/node_modules/chokidar/index.js:451:21
at async Promise.all (index 0)
Emitted 'error' event on FSWatcher instance at:
at FSWatcher._handleError (/home/npm-global/lib/node_modules/react-scripts/node_modules/chokidar/index.js:647:10)
at NodeFsHandler._addToNodeFs (/home/npm-global/lib/node_modules/react-scripts/node_modules/chokidar/lib/nodefs-handler.js:645:18)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async /home/npm-global/lib/node_modules/react-scripts/node_modules/chokidar/index.js:451:21
at async Promise.all (index 0) {
errno: -24,
syscall: 'watch',
code: 'EMFILE',
path: '/home/coder/project/reactlab/public',
filename: '/home/coder/project/reactlab/public'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `react-scripts start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/coder/.npm/_logs/2024-04-26T11_22_57_268Z-debug.log
New contributor
Prathamesh Darekar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.