create-react-app icon indicating copy to clipboard operation
create-react-app copied to clipboard

Can't start anymore my create-react-app project

Open quentin94 opened this issue 8 years ago • 2 comments

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

  1. node -v: v9.7.1
  2. npm -v: 5.7.1
  3. yarn --version (if you use Yarn): 1.5.1
  4. npm ls react-scripts (if you haven’t ejected): [email protected]

Then, specify:

  1. Operating system: Linux Ubuntu 17.10
  2. Browser and version (if relevant):

Steps to Reproduce

(Write your steps here:)

  1. create-react-app test
  2. cd test
  3. 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. (/home/quentin/workspace/internalOpal/test/node_modules/chokidar/lib/nodefs-handler.js:455:19) at FSWatcher. (/home/quentin/workspace/internalOpal/test/node_modules/chokidar/lib/nodefs-handler.js:460:16) at FSReqWrap.oncomplete (fs.js:171:5) error An unexpected error occurred: "Command failed. Exit code: 1 Command: sh Arguments: -c react-scripts start Directory: /home/quentin/workspace/internalOpal/test Output: ". info If you think this is a bug, please open a bug report with the information provided in "/home/quentin/workspace/internalOpal/test/yarn-error.log". info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

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

quentin94 avatar Mar 14 '18 14:03 quentin94

Hey! I'm experiencing this issue, right now. Why is it closed? What was the solution you applied to fix this error?

mmarzantowicz avatar Mar 29 '18 16:03 mmarzantowicz

It's closed because I found the solutions on another issue -> https://github.com/facebook/react-native/issues/8403

quentin94 avatar Mar 30 '18 07:03 quentin94