Giter Club home page Giter Club logo

react-native-demo's Introduction

##mac安装React Native过程中出现的问题

  • brew install watchman 执行错误
Warning:You are using OS X 10.11.We do not provide support for this pre-release version.
Warning: You are using OS X 10.11.
We do not provide support for this pre-release version.
You may encounter build failures or other breakage.
Error: Could not create /usr/local/Cellar
Check you have permission to write to /usr/local

解决办法参考:http://superuser.com/questions/940874/homebrew-doesnt-install-new-apps-in-el-capitan

  • npm install -g react-native-cli 执行错误
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules

解决办法: 没有权限。在命令前面加上sudo,第一次不成功多尝试几次。

  • build facebook demo-- AwesomeProject出错
 Error building DependencyGraph:
 TypeError: Cannot read property 'root' of null
    at index.js:16:60
    at tryCallOne (/Users/yixiaoluo/AwesomeProject/node_modules/promise/lib/core.js:37:12)
    at /Users/yixiaoluo/AwesomeProject/node_modules/promise/lib/core.js:123:15
    at flush (/Users/yixiaoluo/AwesomeProject/node_modules/asap/raw.js:50:29)
    at nextTickCallbackWith0Args (node.js:453:9)
    at process._tickCallback (node.js:382:13)

解决办法: 执行命令brew reinstall watchman,重新安装watchman

##参考

react-native-demo's People

Contributors

goodyboy6 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.