2016-05-13 56 views
0

在厭倦了看到「找不到守望者,回落到NodeWatcher進行文件系統事件」之後,我做了brew install watchman,現在得到「無效的守望員發現,版本:[4.5.0]不滿足[^ 3.0.0],回落到NodeWatcher。「但4.5.0是> 3.0.0 ...?Ember-cli想要看守人> 3 *,我有4 *但它仍然抱怨

我們的應用程序使用Ember 1.12.0和Ember-cli 0.2.7。

我檢查了ember-cli.com/#watchmanthat info is now here),但只是指出節點有一個類似命名的包,並建議npm uninstall -g watchman - 這不是問題。

最後which -a watchman yeilds兩個結果:

/usr/local/bin/watchman 
/usr/local/bin/watchman 

咦?

其他人面臨這個問題?

+1

re:有兩個結果,你在'$ PATH'中列出了'/ usr/local/bin'兩次。 –

+0

@WezFurlong謝謝,沒有發現 - 修復了$ PATH。 –

回答

3

您可以更新您的ember-clinpm install -g [email protected],它很好地管理任何Ember 1.12應用程序,並與最新的守衛人員兼容。

brew install watchman是安裝WatchMan的正確方式,因此您擁有正確的版本。你可以用watchman -v進行檢查。

如果你檢查你的/usr/local/bin文件夾,可能你會看到只有一個守望者命令,所以它應該是正確的。

+1

我認爲升級'ember-cli'是正確的方法。 'ember-cli'應該使用https://facebook.github.io/watchman/docs/capabilities.html而不是版本號比較。 –

相關問題