$ hexo s INFO Validating config WARN Deprecated config detected: "use_date_for_updated" is deprecated, please use "updated_option" instead. See https://hexo.io/docs/configuration for more details. INFO Start processing FATAL { err: Error: ENOSPC: System limit for number of file watchers reached, watch '/home/huhong/My_Blog/themes/aria/' at FSWatcher.<computed> (node:internal/fs/watchers:244:19) at Object.watch (node:fs:2264:34) at createFsWatchInstance (/home/huhong/My_Blog/node_modules/chokidar/lib/nodefs-handler.js:119:15) at setFsWatchListener (/home/huhong/My_Blog/node_modules/chokidar/lib/nodefs-handler.js:166:15) at NodeFsHandler._watchWithNodeFs (/home/huhong/My_Blog/node_modules/chokidar/lib/nodefs-handler.js:331:14) at NodeFsHandler._handleDir (/home/huhong/My_Blog/node_modules/chokidar/lib/nodefs-handler.js:567:19) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async NodeFsHandler._addToNodeFs (/home/huhong/My_Blog/node_modules/chokidar/lib/nodefs-handler.js:617:16) at async /home/huhong/My_Blog/node_modules/chokidar/index.js:451:21 at async Promise.all (index 0) { errno: -28, syscall: 'watch', code: 'ENOSPC', path: '/home/huhong/My_Blog/themes/aria/', filename: '/home/huhong/My_Blog/themes/aria/' } } Something's wrong. Maybe you can find the solution here: %s https://hexo.io/docs/troubleshooting.html
参考博客[1]后,了解是watch的文件数问题,通过以下命令扩大成果解决。
1
$ echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p