Can't start anymore my create-react-app project
Is this a bug report?
Yes
Did you try recovering your dependencies?
Yes
Which terms did you search for in User Guide?
react-scripts start failed
Environment
node -v: v9.7.1npm -v: 5.7.1yarn --version(if you use Yarn): 1.5.1npm ls react-scripts(if you haven’t ejected): [email protected]
Then, specify:
- Operating system: Linux Ubuntu 17.10
- Browser and version (if relevant):
Steps to Reproduce
(Write your steps here:)
- create-react-app test
- cd test
- yarn start
Expected Behavior
Launch create-react-app and open the browser
Actual Behavior
I couldn't open my project with yarn start or npm start even after reinstalling yarn, delete node_modules and lock file. It was working at first but not anymore.
I got this error when I launch with yarn start or npm start:
Starting the development server...
events.js:112 throw er; // Unhandled 'error' event ^
Error: watch /home/quentin/workspace/internalOpal/test/public ENOSPC
at FSWatcher.start (fs.js:1409:19)
at Object.fs.watch (fs.js:1435:11)
at createFsWatchInstance (/home/quentin/workspace/internalOpal/test/node_modules/chokidar/lib/nodefs-handler.js:37:15)
at setFsWatchListener (/home/quentin/workspace/internalOpal/test/node_modules/chokidar/lib/nodefs-handler.js:80:15)
at FSWatcher.NodeFsHandler._watchWithNodeFs (/home/quentin/workspace/internalOpal/test/node_modules/chokidar/lib/nodefs-handler.js:228:14)
at FSWatcher.NodeFsHandler._handleDir (/home/quentin/workspace/internalOpal/test/node_modules/chokidar/lib/nodefs-handler.js:407:19)
at FSWatcher.
And at the end of my log file :
Trace: Error: Command failed. Exit code: 1 Command: sh Arguments: -c react-scripts start Directory: /home/quentin/workspace/internalOpal/test Output:
at ProcessTermError.MessageError (/usr/share/yarn/lib/cli.js:186:110)
at new ProcessTermError (/usr/share/yarn/lib/cli.js:226:113)
at ChildProcess.<anonymous> (/usr/share/yarn/lib/cli.js:30281:17)
at ChildProcess.emit (events.js:127:13)
at maybeClose (internal/child_process.js:936:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)
Reproducible Demo
Hey! I'm experiencing this issue, right now. Why is it closed? What was the solution you applied to fix this error?
It's closed because I found the solutions on another issue -> https://github.com/facebook/react-native/issues/8403