问题描述
我在我的Ember应用程序之间切换时收到以下错误消息:
version:2.4.2
无法启动watchman;退回到NodeWatcher进行文件系统事件。
访问ember-cli.com了解更多信息。
上的Livereload服务器
无法在。它正在使用或您没有权限。
I get the below error message while I switch between my ember applications:version: 2.4.2Could not start watchman; falling back to NodeWatcher for file system events.Visit ember-cli.com for more info.Livereload server on http://localhost:49153Could not serve on http://localhost:4200. It is either in use or you do not have permission.
以下是我在我的机器上设置的软件包:
npm --version
2.14.20
bower --version
1.7.7
ember --version
2.4.2
节点:4.4.0
os:linux x64
Here are the packages that I have setup on my machine:npm --version2.14.20bower --version1.7.7ember --version2.4.2node: 4.4.0os: linux x64
推荐答案
Ember-cli(从版本0.1.3开始)需要看门人或其他一些服务(例如NodeWatcher)进行文件监视
Ember-cli (starting from release 0.1.3) requires watchman or some other service (e.g. NodeWatcher) for file watching.
您可以在ember-cli版本中找到此信息0.1.3 changelog:
You can find this info in the ember-cli release 0.1.3 changelog:https://github.com/ember-cli/ember-cli/releases/tag/v0.1.3
尽管我相信你可以使用没有看门人的Ember应用程序,可以确认你已经安装了看门人吗?
Although I believe you could use your Ember app without watchman, could you confirm that you already have watchman installed?
如果没有,这是在Ubuntu 64bit中对我有用的功能:
If not, here's what works fine for me in Ubuntu 64bit:
// installing watchman from source
git clone https://github.com/facebook/watchman.git
cd watchman
./autogen.sh
./configure
make
sudo make install
如果安装后仍然有问题,请同时重置您的看门人配置:
if you still have problems after installing try also resetting your watchman configuration:
watchman watch-del-all
watchman watch-del /home/myproject // your project folder goes here...
watchman watch-project /home/myproject // your project folder goes
有关守望者的完整安装说明也可以在这里找到
full installation instructions regarding watchman can also be found herehttps://facebook.github.io/watchman/docs/install.html
这篇关于不能启动守望者退回到NodeWatcher进行文件系统事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!