Yes
Issue is not related to 4 version
No
node -v
: 8.9.1
npm -v
: 5.5.1
yarn --version
(if you use Yarn): 1.3.2
npm ls react-scripts
(if you haven鈥檛 ejected): 1.0.17
Then, specify:
create-react-app APP_NAME
cd APP_NAME
yarn start
or npm start
will run app and open in browser.
Starting the development server...
events.js:183
throw er; // Unhandled 'error' event
^
Error: watch /home/toshiba/Documents/projects/my-cv/client3/public/favicon.ico ENOSPC
at _errnoException (util.js:1024:11)
at FSWatcher.start (fs.js:1374:19)
at Object.fs.watch (fs.js:1400:11)
at createFsWatchInstance (/home/toshiba/Documents/projects/my-cv/client3/node_modules/chokidar/lib/nodefs-handler.js:37:15)
at setFsWatchListener (/home/toshiba/Documents/projects/my-cv/client3/node_modules/chokidar/lib/nodefs-handler.js:80:15)
at FSWatcher.NodeFsHandler._watchWithNodeFs (/home/toshiba/Documents/projects/my-cv/client3/node_modules/chokidar/lib/nodefs-handler.js:228:14)
at FSWatcher.NodeFsHandler._handleFile (/home/toshiba/Documents/projects/my-cv/client3/node_modules/chokidar/lib/nodefs-handler.js:255:21)
at FSWatcher.<anonymous> (/home/toshiba/Documents/projects/my-cv/client3/node_modules/chokidar/lib/nodefs-handler.js:473:21)
at FSReqWrap.oncomplete (fs.js:153:5)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Thanks.
Got the same problem, fixed running with sudo on Ubuntu:
sudo yarn start
Yes, @Mogtofu33 it is a workaround right now. But anyway it is a bug, app should not need root rights to run.
Install node and npm using NVM which can install multiple versions of node and point to any one you like. It installs node in your home directory, hence no sudo rights required as well.
@Talgat-Sar
The current error is a ENOSPC (Not enough space)
It's not directly related to permission but normally to disk usage and when you hit the limit of file you can watch.
As root the limit of watch is probably bigger than a normal use,that's why sudo
solve the problem however run an application as root is not desirable.
Try to increase the limit of watchable files
https://stackoverflow.com/questions/22475849/node-js-error-enospc/32600959#32600959
Please increase your number of watchers available to your user: https://webpack.github.io/docs/troubleshooting.html#not-enough-watchers
Most helpful comment
Got the same problem, fixed running with sudo on Ubuntu:
sudo yarn start