Created
January 3, 2018 22:19
-
-
Save hawkapparel/7af6df9d1fe692e5812dfa40bbedf5e8 to your computer and use it in GitHub Desktop.
Error ENOSPC npm + laravel MIX + WEBPACK
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ERROR MESSAGE | |
| events.js:160 | |
| throw er; // Unhandled 'error' event | |
| ^ | |
| Error: watch /var/www/Libero/app ENOSPC | |
| at exports._errnoException (util.js:1020:11) | |
| at FSWatcher.start (fs.js:1451:19) | |
| at Object.fs.watch (fs.js:1478:11) | |
| at createFsWatchInstance (/var/www/Libero/node_modules/chokidar/lib/nodefs-handler.js:37:15) | |
| at setFsWatchListener (/var/www/Libero/node_modules/chokidar/lib/nodefs-handler.js:80:15) | |
| at FSWatcher.NodeFsHandler._watchWithNodeFs (/var/www/Libero/node_modules/chokidar/lib/nodefs-handler.js:228:14) | |
| at FSWatcher.NodeFsHandler._handleDir (/var/www/Libero/node_modules/chokidar/lib/nodefs-handler.js:407:19) | |
| at FSWatcher.<anonymous> (/var/www/Libero/node_modules/chokidar/lib/nodefs-handler.js:455:19) | |
| at FSWatcher.<anonymous> (/var/www/Libero/node_modules/chokidar/lib/nodefs-handler.js:460:16) | |
| at FSReqWrap.oncomplete (fs.js:123:15) | |
| Solution: | |
| the system has a limit to how many files can be watched by a user. You can run out of watches pretty quickly if you have Grunt running with other programs like Dropbox. | |
| The post suggest running this to increase the number of watches that are available. | |
| echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment