Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install Watchman on Windows (win10)?

I am trying to install Watchman to my computer for npm for React Native. I opened the docs http://facebook.github.io/watchman/docs/install.html and can't understand how it should be done.

Could you please explain me more detailed?

like image 587
pto3 Avatar asked Jul 19 '16 07:07

pto3


People also ask

How long does it take to install watchman?

The WATCHMAN device is implanted in the hospital. The procedure takes about one hour, requires general anesthesia, and involves an overnight stay.

Is watchman needed for react native?

React Native uses watchman to detect when you've made code changes and then automatically build and push the update to your device without you needing to manually refresh it.


2 Answers

  1. Load watchman archive by this instruction https://facebook.github.io/watchman/docs/install#binary-downloads-for-linux-macos-and-windows-beta
  2. Create folder watchman in c:\Users\USERNAME\AppData\Local
  3. Extract watchman archive to watchman folder. You must get c:\Users\USERNAME\AppData\Local\watchman\watchman.exe
  4. Open path environment in
    • click on luppa (find) and insert settings: Edit the system environment variables -> Environment variables
    • OR System -> System Info -> Advance system settings -> Advance (tab) -> Environment variables
  5. Set add to enviroment path c:\Users\USERNAME\AppData\Local\watchman
  6. Re login in you system or reboot PC
  7. Open terminal and run command watchman -v and you must see version
like image 71
Andrey Patseiko Avatar answered Oct 19 '22 10:10

Andrey Patseiko


For those using Chocolatey (this is not published on the website yet, but found the info in the github repo):

Watchman is available to install via the Chocolatey Windows package manager. Installation is as simple as:

PS C:\> choco install watchman 

Reference: https://github.com/facebook/watchman/blob/573b18b86b88759f31e83fa2e1837539d138de22/website/_docs/install.markdown#installing-on-windows-via-chocolatey

Beware that installing Chocolatey itself is somewhat tedious, but here is the link if you'd like to give it a go: https://chocolatey.org/courses/installation

like image 32
Bjørnar Hvidsten Avatar answered Oct 19 '22 11:10

Bjørnar Hvidsten