无法启动守望者;回退到 NodeWatcher 以获取文件系统事件 fedora

Could not start watchman; falling back to NodeWatcher for file system events fedora

这不是重复的:

我在 Fedora 24

上使用 Intellij Angular CLI

Could not start watchman; falling back to NodeWatcher for file system events.

是我的控制台在生成项目时的输出。 NodeWatcher 让我的 IDE 非常缓慢,我希望 WatchMan 是答案。

完整消息:

/usr/bin/node /usr/lib/node_modules/angular-cli/bin/ng init --name=TestProject
Could not start watchman; falling back to NodeWatcher for file system events.
Visit http://ember-cli.com/user-guide/#watchman for more info.
installing ng2

到目前为止,我做了 sudo dnf install inotify-tools-3.14-10.fc24 这就像 Homebrew,但根据我的理解 linux。有关更多信息,请访问 link info

我什至在我的 Fedora 机器上下载了 homebrew,但下载后无法正常工作。

npm -v 3.9.6 node -v v4.4.7

尝试从源代码安装 Watchman。从 https://github.com/facebook/watchman 克隆或下载它。 确保您已经安装了:Autoconf、Automake 和 Python-dev(或 Python-devel)软件。 在终端 运行 命令中: 1. git 克隆 https://github.com/facebook/watchman.git (或从上面的 link 下载 zip 文件), 2.CD守望者, 3. git checkout v4.6.0 , 4../autogen.sh, 5../配置, 6. 制作, 7. 须藤安装

Could not start watchman; falling back to NodeWatcher for file system events.

这意味着我们没有安装一个叫做 watchman 的工具。这个工具可以帮助 Angular CLI 当它需要监视文件系统中的文件以进行更改时。如果您是 运行 OSX, 建议通过以下命令使用 Homebrew 安装它

$ brew install watchman