0%

macOS Sierra 10.12 react native的问题

问题:

watchman装不上

1
2
watchman -v
watchman command not found
解决方法:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# clone repo
git clone https://github.com/facebook/watchman.git

cd watchman

# change to master branch
git checkout -b v4.6.0 v4.6.0

# run compiler
./autogen.sh
./configure --enable-lenient --without-pcre --with-python
make
sudo make install

# check watchman version
watchman -v

# result should be 4.6.0

原文地址:https://github.com/facebook/react-native/issues/9309#issuecomment-238966924