React Native `npm start` with watchman error

前端 未结 3 943
青春惊慌失措
青春惊慌失措 2021-01-13 23:43

I was first getting this issue: https://github.com/facebook/react-native/issues/10088

Then I followed this solution to resolve for that issue: https://github.com/fac

3条回答
  •  醉梦人生
    2021-01-14 00:05

    I solved this problem by following the solution provided by David but I had to do some extra steps because I already had installed watchman using brew. Here are the list of commands for the solution:

    Deleting watchman (installed by brew):

    $ brew install rmtree
    $ brew rmtree watchman
    $ sudo rm -rf /usr/local/var/run/watchman
    

    Manually install Watchman v4.7.0 (credits to David):

    $ git clone https://github.com/facebook/watchman.git
    $ cd watchman
    $ git checkout v4.7.0
    $ ./autogen.sh
    $ ./configure
    $ make
    $ sudo make install
    

    Chmod your user's watchman state directory:

    $ chmod 0700 /usr/local/var/run/watchman/-state
    

提交回复
热议问题