Error on ubuntu
> react-scripts test
Error: watch /home/lam.ngoc.khuong/develop/project/my-workspace/react/learn-react/hackernews/node_modules/accepts ENOSPC
at FSWatcher.start (fs.js:1382:19)
at Object.fs.watch (fs.js:1408:11)
at NodeWatcher.watchdir (/home/lam.ngoc.khuong/develop/project/my-workspace/react/learn-react/hackernews/node_modules/sane/src/node_watcher.js:159:22)
at Walker.<anonymous> (/home/lam.ngoc.khuong/develop/project/my-workspace/react/learn-react/hackernews/node_modules/sane/src/common.js:109:31)
at emitTwo (events.js:126:13)
at Walker.emit (events.js:214:7)
at /home/lam.ngoc.khuong/develop/project/my-workspace/react/learn-react/hackernews/node_modules/walker/lib/walker.js:69:16
at go$readdir$cb (/home/lam.ngoc.khuong/develop/project/my-workspace/react/learn-react/hackernews/node_modules/graceful-fs/graceful-fs.js:162:14)
at FSReqWrap.oncomplete (fs.js:135:15)
npm ERR! Test failed. See above for more details.
Fix it on linux:
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p