2017-08-05 94 views
1

錯誤看文件:觀看更改文件時出錯:EMFILE {「code」:「EMFILE」,「errno」:「EMFILE」,「syscall」:「觀察文件更改時出錯:」,「filename」:null}?更改

EMFILE {"code":"EMFILE","errno":"EMFILE","syscall":"Error watching file for changes:","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" 
     } 
+0

得到同樣的錯誤: 「錯誤看文件更改:EMFILE {」 代碼 「:」 EMFILE 「,」errno「:」EMFILE「,」syscall「:」錯誤監視文件的更改:「,」文件名「:空} 錯誤:觀察文件更改時出錯:EMFILE at exports._errnoException(util.js:1050 :11) at FSEvent.FSWatcher._handle.onchange(fs.js:1374:11)「 – Tom

回答

3

您需要通過BREW安裝watchman

brew install watchman 
-1

如果你所得到的誤差爲Error watching file for changes: EMFILE

運行這些命令來解決這個問題:

  1. 釀造卸載--force守望
  2. 釀造環節的automake
  3. 釀造安裝--HEAD守望