磁盘空间不足 Error ENOSPC

报错详情:

Error: watch /home/go/src/github.com/cosmos/explorer/public ENOSPC
    at FSWatcher.start (fs.js:1402:19)
    at Object.fs.watch (fs.js:1428:11)
    at createFsWatchInstance (/home/go/src/github.com/cosmos/explorer/node_modules/chokidar/lib/nodefs-handler.js:37:15)
    at setFsWatchListener (/home/go/src/github.com/cosmos/explorer/node_modules/chokidar/lib/nodefs-handler.js:80:15)
    at FSWatcher.NodeFsHandler._watchWithNodeFs (/home/go/src/github.com/cosmos/explorer/node_modules/chokidar/lib/nodefs-handler.js:229:14)
    at FSWatcher.NodeFsHandler._handleDir (/home/go/src/github.com/cosmos/explorer/node_modules/chokidar/lib/nodefs-handler.js:408:19)
    at FSWatcher. (/home/go/src/github.com/cosmos/explorer/node_modules/chokidar/lib/nodefs-handler.js:456:19)
    at FSWatcher. (/home/go/src/github.com/cosmos/explorer/node_modules/chokidar/lib/nodefs-handler.js:461:16)
    at FSReqWrap.oncomplete (fs.js:171:5)
Emitted 'error' event at:
    at FSWatcher._handleError (/home/go/src/github.com/cosmos/explorer/node_modules/chokidar/index.js:260:10)
    at createFsWatchInstance (/home/go/src/github.com/cosmos/explorer/node_modules/chokidar/lib/nodefs-handler.js:39:5)
    at setFsWatchListener (/home/go/src/github.com/cosmos/explorer/node_modules/chokidar/lib/nodefs-handler.js:80:15)
    [... lines matching original stack trace ...]
    at FSReqWrap.oncomplete (fs.js:171:5)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

解决:

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

你可能感兴趣的:(问题解决)