问题
npm start
启动 kibana 时,莫名其妙报错:
看报错信息也看不出来为什么,甚至试过重启虚拟机.....
解决办法
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
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.
参考阅读
- Kibana Dev. ENOSPC Error:
https://lifewtech.com/2017/10/kibana-dev-enospc-error/ - An error "Error: watch ENOSPC":
https://github.com/remy/nodemon/issues/214#issuecomment-114362402
网友评论