React: Bug: Unable to run command npm start

Created on 30 Apr 2020  路  2Comments  路  Source: facebook/react

Steps To Reproduce

1.run npx create-react-app
2.cd project-folder
3.npm start

The current behavior

`Starting the development server...

events.js:292
throw er; // Unhandled 'error' event
^

Error: ENOSPC: System limit for number of file watchers reached, watch '/home/candres/Documents/Programacion/Cursos/MERN/frontend/public/logo512.png'
at FSWatcher. (internal/fs/watchers.js:169:26)
at Object.watch (fs.js:1388:34)
at createFsWatchInstance (/home/candres/Documents/Programacion/Cursos/MERN/frontend/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:38:15)
at setFsWatchListener (/home/candres/Documents/Programacion/Cursos/MERN/frontend/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:81:15)
at FSWatcher.NodeFsHandler._watchWithNodeFs (/home/candres/Documents/Programacion/Cursos/MERN/frontend/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:233:14)
at FSWatcher.NodeFsHandler._handleFile (/home/candres/Documents/Programacion/Cursos/MERN/frontend/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:262:21)
at FSWatcher. (/home/candres/Documents/Programacion/Cursos/MERN/frontend/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:495:21)
at FSReqCallback.oncomplete (fs.js:172:5)
Emitted 'error' event on FSWatcher instance at:
at FSWatcher._handleError (/home/candres/Documents/Programacion/Cursos/MERN/frontend/node_modules/webpack-dev-server/node_modules/chokidar/index.js:260:10)
at createFsWatchInstance (/home/candres/Documents/Programacion/Cursos/MERN/frontend/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:40:5)
at setFsWatchListener (/home/candres/Documents/Programacion/Cursos/MERN/frontend/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:81:15)
[... lines matching original stack trace ...]
at FSReqCallback.oncomplete (fs.js:172:5) {
errno: -28,
syscall: 'watch',
code: 'ENOSPC',
path: '/home/candres/Documents/Programacion/Cursos/MERN/frontend/public/logo512.png',
filename: '/home/candres/Documents/Programacion/Cursos/MERN/frontend/public/logo512.png'
}
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/candres/.npm/_logs/2020-04-30T18_30_11_541Z-debug.log`

Unconfirmed

Most helpful comment

Here's something that may help: https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers

yeah it works, thanks a lot dude

All 2 comments

Here's something that may help: https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers

yeah it works, thanks a lot dude

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gaearon picture gaearon  路  104Comments

addyosmani picture addyosmani  路  143Comments

fdecampredon picture fdecampredon  路  139Comments

gaearon picture gaearon  路  126Comments

brunolemos picture brunolemos  路  285Comments