簡體   English   中英

監視器錯誤與ember-cli

[英]Watchman Error with ember-cli

我試圖按照Ember 101中的示例進行操作。我之前已經使用過這段代碼而沒有任何問題。 重新安裝我的ubuntu 14.04后出於無關的原因,我在控制台中運行ember serve時出現錯誤[見下文]。

我嘗試了解決這個問題的方法: https//facebook.github.io/watchman/docs/troubleshooting.html#poison-inotify-add-watch 我還在.watchmanconfig ignore_dirs上添加了“node_modules”和“bower_components”: https//github.com/ember-cli/ember-cli/issues/4101但沒有效果。

誰知道我做錯了什么/安裝不正確?

錯誤:已觸發不可恢復的條件。 守望者需要你的幫助! 觸發條件是在timestamp = 1449200416:inotify-add-watch(/ home / john / Practice / borrowers / tests / unit / models) - >達到了用戶對inotify手表總數的限制; 增加fs.inotify.max_user_watches sysctl在解決基礎問題之前,所有請求都將繼續失敗並顯示此消息。 您可以在https://facebook.github.io/watchman/docs/troubleshooting.html#poison-inotify-add-watch找到有關修復此問題的更多信息。

at ChildProcess.<anonymous> (/home/john/Practice/borrowers/node_modules/ember-cli/node_modules/sane/node_modules/fb-watchman/index.js:202:17)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:818:16)
at Socket.<anonymous> (internal/child_process.js:319:11)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at Pipe._onclose (net.js:469:12)

我意識到這是一個舊線程,但萬一有人在這里偶然發現我能夠通過執行以下命令在我的機器上解決這個問題...

$ sudo sysctl fs.inotify.max_user_watches=524288
$ watchman shutdown-server

下次我運行ember build --watch ,一切正常。

有關更好的解釋,請參閱......

如果要永久修改系統,可以輸入以下命令:

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf
sudo sysctl -p
watchman shutdown-server

在我的Ubuntu 16.04上將ember升級到2.5.0后發生了這種情況

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM