FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html Error: watch /home/sail/codelife/code/repo/blog/source/ ENOSPC at _errnoException (util.js:1021:11) at FSWatcher.start (fs.js:1383:19) at Object.fs.watch (fs.js:1409:11) at createFsWatchInstance (/home/sail/codelife/code/repo/blog/node_modules/chokidar/lib/nodefs-handler.js:37:15) at setFsWatchListener (/home/sail/codelife/code/repo/blog/node_modules/chokidar/lib/nodefs-handler.js:80:15) at FSWatcher.NodeFsHandler._watchWithNodeFs (/home/sail/codelife/code/repo/blog/node_modules/chokidar/lib/nodefs-handler.js:228:14) at FSWatcher.NodeFsHandler._handleDir (/home/sail/codelife/code/repo/blog/node_modules/chokidar/lib/nodefs-handler.js:407:19) at FSWatcher.<anonymous> (/home/sail/codelife/code/repo/blog/node_modules/chokidar/lib/nodefs-handler.js:455:19) at FSWatcher.<anonymous> (/home/sail/codelife/code/repo/blog/node_modules/chokidar/lib/nodefs-handler.js:460:16) at FSReqWrap.oncomplete (fs.js:154:5) npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! hexo-site@0.0.0 start: `hexo g && hexo s` npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the hexo-site@0.0.0 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! /home/sail/.npm/_logs/2017-10-31T11_19_48_152Z-debug.log
因为我在hexo的package.json文件中修改了一下启动脚本,如下
1 2 3 4
"scripts": { "start": "hexo g && hexo s", "build": "hexo g && hexo d" },
我执行的npm start命令,所以这个错误应该是hexo g或者hexo s产生的,其实是hexo s