21 May 2016

setup steps

  1. install nodejs

    1. download form nodejs.org

    2. or update

       $ npm install -g n
       $ n latest
      
  2. install homebrew

    1. install homebrew

       $ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
      
    2. install watchman

       $ brew install watchman
      
    3. install flow

       $ brew install flow
      
  3. install react-native-cli

         $ npm install -g react-native-cli
    

fixed

  1. unable to install homebrew

    1. fixed

       $ sudo chown -R gree2 /usr/local/Library
      
    2. can’t write to /usr/local/Cellar

       $ sudo chown -R gree2 /usr/local/Cellar
      
    3. it’s just not linked

       $ brew link --overwrite watchman
      
  2. missing write access to /usr/local/lib/node_modules

         $ sudo chown -R gree2 /usr/local/lib/
    


blog comments powered by Disqus