反应本机安装警告和编译错误

时间:2015-12-09 04:31:22

标签: react-native

编译精彩项目时出现以下错误。

构建DependencyGraph时出错:

 TypeError: Cannot read property 'root' of null
    at index.js:16:84
    at tryCallOne (/Users/mahesh.govind/react/AwesomeProj .

我正在使用xcode版本7.1.1 (7B1005) .

在安装本地反应时,我得到了警告

/usr/local/bin/react-native -> /usr/local/lib/node_modules/react-native-cli/index.js
npm WARN unmet dependency /usr/local/lib/node_modules/generator-karma/node_modules/findup-sync requires glob@'~4.3.0' but will load
npm WARN unmet dependency /usr/local/lib/node_modules/generator-karma/node_modules/glob,
npm WARN unmet dependency which is version 5.0.15
npm WARN unmet dependency /usr/local/lib/node_modules/mean-cli/node_modules/bower requires chalk@'^1.0.0' but will load
npm WARN unmet dependency /usr/local/lib/node_modules/mean-cli/node_modules/chalk,
npm WARN unmet dependency which is version 0.5.1
npm WARN unmet dependency /usr/local/lib/node_modules/mean-cli/node_modules/bower requires glob@'^4.3.2' but will load
npm WARN unmet dependency /usr/local/lib/node_modules/mean-cli/node_modules/glob,
npm WARN unmet dependency which is version 5.0.15
npm WARN unmet dependency /usr/local/lib/node_modules/mean-cli/node_modules/bower requires inquirer@'0.10.0' but will load
npm WARN unmet dependency /usr/local/lib/node_modules/mean-cli/node_modules/inquirer,
npm WARN unmet dependency which is version 0.8.5
npm WARN unmet dependency /usr/local/lib/node_modules/mean-cli/node_modules/bower requires mkdirp@'0.5.0' but will load
npm WARN unmet dependency /usr/local/lib/node_modules/mean-cli/node_modules/mkdirp,
npm WARN unmet dependency which is version 0.5.1
npm WARN unmet dependency /usr/local/lib/node_modules/mean-cli/node_modules/bower requires request@'2.53.0' but will load
npm WARN unmet dependency /usr/local/lib/node_modules/mean-cli/node_modules/request,
npm WARN unmet dependency which is version 2.65.0
npm WARN unmet dependency /usr/local/lib/node_modules/mean-cli/node_modules/mongodb-core requires bson@'~0.4' but will load
npm WARN unmet dependency /usr/local/lib/node_modules/mean-cli/node_modules/bson,
npm WARN unmet dependency which is version 0.3.2
npm WARN unmet dependency /usr/local/lib/node_modules/mean-cli/node_modules/node.extend requires is@'^3.0.1' but will load
npm WARN unmet dependency /usr/local/lib/node_modules/mean-cli/node_modules/is,
npm WARN unmet dependency which is version 2.0.2
npm WARN unmet dependency /usr/local/lib/node_modules/mean-cli/node_modules/utile requires async@'~0.2.9' but will load
npm WARN unmet dependency /usr/local/lib/node_modules/mean-cli/node_modules/async,
npm WARN unmet dependency which is version 0.9.0
npm WARN unmet dependency /usr/local/lib/node_modules/mean-cli/node_modules/winston requires async@'0.2.x' but will load
npm WARN unmet dependency /usr/local/lib/node_modules/mean-cli/node_modules/async,
npm WARN unmet dependency which is version 0.9.0

任何指示......提前致谢.. -mahesh

1 个答案:

答案 0 :(得分:0)

我怀疑你正在遇到this issue

  

0.18c回归。

现在,我要么挑选引用的提交,要么将package.json中的反应本机依赖项降级为0.17几天。