您好我在Docker镜像上使用ember-cli应用程序。当我使用
运行ember应用程序时 ember server
我收到以下消息
version: 0.2.6
0.2.7
"Could not find watchman, falling back to NodeWatcher for file system events."
我在Dockerfile中尝试过
#install homebrew
RUN git clone https://github.com/Homebrew/linuxbrew.git ~/.linuxbrew
ENV PATH="$HOME/.linuxbrew/bin:$HOME/local/m4/bin:$PATH"
ENV MANPATH="$HOME/.linuxbrew/share/man:$MANPATH"
ENV INFOPATH="$HOME/.linuxbrew/share/info:$INFOPATH"
RUN brew install watchman
它似乎已正确安装..但我仍然收到消息说它无法找到'守望者'
我错过了什么?
另外,我按照installing watchman
尝试了以下操作RUN apt-get install -y automake
RUN cd /tmp \
git clone https://github.com/facebook/watchman.git \
cd watchman \
./autogen.sh \
./configure \
make \
make install
然后我收到警告......并抛出以下错误
log.c: In function 'w_set_thread_name':
log.c:47:12: error: ignoring return value of 'vasprintf', declared with attribute warn_unused_result [-Werror=unused-result]
vasprintf(&name, fmt, ap);
^
cc1: all warnings being treated as errors
make[1]: *** [watchman-log.o] Error 1
make: *** [all] Error 2
你们之前有没遇到过这个?我怎样才能解决这个问题..任何指针都很棒。
答案 0 :(得分:1)
看起来当前看守的版本失败了,我尝试了最新的稳定版本,它似乎与你上面的步骤一致。只需抓住v3.1就可以了:
RUN git clone https://github.com/facebook/watchman.git \
&& cd watchman \
&& git checkout v3.1 \
&& ./autogen.sh \
&& ./configure \
&& make \
&& make install