You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After installing webtorrent, a very large npm package, the --live option throws the following:
Error: watch ENOSPC
at exports._errnoException (util.js:746:11)
at FSWatcher.start (fs.js:1172:11)
at Object.fs.watch (fs.js:1198:11)
at createFsWatchInstance (/home/m59/.nvm/versions/node/v0.12.5/lib/node_modules/beefy/node_modules/chokidar/lib/nodefs-handler.js:37:15)
at setFsWatchListener (/home/m59/.nvm/versions/node/v0.12.5/lib/node_modules/beefy/node_modules/chokidar/lib/nodefs-handler.js:80:15)
at EventEmitter.NodeFsHandler._watchWithNodeFs (/home/m59/.nvm/versions/node/v0.12.5/lib/node_modules/beefy/node_modules/chokidar/lib/nodefs-handler.js:228:14)
at EventEmitter.NodeFsHandler._handleFile (/home/m59/.nvm/versions/node/v0.12.5/lib/node_modules/beefy/node_modules/chokidar/lib/nodefs-handler.js:255:21)
at EventEmitter. (/home/m59/.nvm/versions/node/v0.12.5/lib/node_modules/beefy/node_modules/chokidar/lib/nodefs-handler.js:468:21)
at FSReqWrap.oncomplete (fs.js:95:15)
Running beefy without the --live option isn't affected.
The text was updated successfully, but these errors were encountered:
You're on Linux, right? This is because inotify is running out of watches. Typically this is because you're running beefy while $PWD contains many descendants (e.g. as you describe, there might be a node_modules/ subdirectory that contains a big module). If you look around online you'll see various recipes for moving memory from user space to the kernel, but IMHO it's cleaner to just cd to a "leaf" directory before running beefy. Arguably the chokidar module should be smart enough to stay out of node_modules/ (especially since it depends on 57 modules all by itself), which would prevent this issue 95% of the time, but AFAICT it's not smart enough to do that. Apparently that's intentional; see paulmillr/chokidar#294.
After installing
webtorrent
, a very large npm package, the--live
option throws the following:Running beefy without the
--live
option isn't affected.The text was updated successfully, but these errors were encountered: