监视文件更改时出错:EMFILE "code":"EMFILE","errno":"EMFILE","sysc
Posted
技术标签:
【中文标题】监视文件更改时出错:EMFILE "code":"EMFILE","errno":"EMFILE","syscall":"监视文件更改时出错:","filename": null?【英文标题】:Error watching file for changes: EMFILE "code":"EMFILE","errno":"EMFILE","syscall":"Error watching file for changes:","filename": null?监视文件更改时出错:EMFILE "code":"EMFILE","errno":"EMFILE","syscall":"监视文件更改时出错:","filename": null? 【发布时间】:2017-08-05 08:14:57 【问题描述】:错误监视文件以进行更改:
EMFILE "code":"EMFILE","errno":"EMFILE","syscall":"错误观看 修改文件:","filename": null?
"dependencies":
"react": "16.0.0-alpha.12",
"react-native": "0.47.1",
"react-native-router-flux": "^4.0.0-beta.16",
"react-redux": "^5.0.5",
"redux": "^3.7.2",
"redux-thunk": "^2.2.0"
【问题讨论】:
得到同样的错误:“错误监视文件的更改:EMFILE "code":"EMFILE","errno":"EMFILE","syscall":"错误监视文件的更改:" "filename":null 错误:查看文件以进行更改时出错:EMFILE at exports._errnoException (util.js:1050:11) at FSEvent.FSWatcher._handle.onchange (fs.js:1374:11)" 【参考方案1】:需要通过brew安装watchman
:
brew install watchman
【讨论】:
【参考方案2】:如果您收到错误为Error watching file for changes: EMFILE
运行这些命令来解决这个问题:
-
brew 卸载 --force watchman
brew 链接自动制作
brew install --HEAD watchman
【讨论】:
以上是关于监视文件更改时出错:EMFILE "code":"EMFILE","errno":"EMFILE","sysc的主要内容,如果未能解决你的问题,请参考以下文章
加载配置文件时出错:无法开始监视对 '\\share' 的更改
如何修复 react-scripts 启动时的“错误监视文件以进行更改:ECONNRESET”错误?