Install with Homebrew
1/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
2
3brew install watchman
4
5watchman --version
Install from official binary
1VERSION='v2022.07.18.00'
2# Check what the latest version is from: https://github.com/facebook/watchman/releases/latest
3
4wget https://github.com/facebook/watchman/archive/refs/tags/${VERSION}.zip
5
6unzip watchman-${VERSION}-linux.zip
7cd watchman-${VERSION}-linux
8
9sudo mkdir -p /usr/local/{bin,lib} /usr/local/var/run/watchman
10sudo cp bin/* /usr/local/bin
11sudo cp lib/* /usr/local/lib
12sudo chmod 755 /usr/local/bin/watchman
13sudo chmod 2777 /usr/local/var/run/watchman
14
15watchman --version