无法在Windows中运行react-native示例

时间:2016-08-14 17:34:47

标签: windows react-native

我正在尝试在Windows for Android中运行入门example但是在运行

之后
react-native run-android

我收到以下错误:

TypeError: Object doesn't support property or method 'isNative'
   at CallSiteToString (X:\code\react_native\AwesomeProject\node_modules\source-map-support\source-map-support.js:195:3)
   at Anonymous function (X:\code\react_native\AwesomeProject\node_modules\source-map-support\source-map-support.js:304:5)
   at Array.prototype.map (native code)
   at prepareStackTrace (X:\code\react_native\AwesomeProject\node_modules\source-map-support\source-map-support.js:303:3)
   at stackGetter (Unknown script code:208:9)
   at socketErrorListener (_http_client.js:303:3)
   at emitOne (events.js:96:5)
   at emit (events.js:188:7)
   at emitErrorNT (net.js:1265:3)
   at _combinedTickCallback (internal/process/next_tick.js:74:11)

2 个答案:

答案 0 :(得分:0)

也许你的代码有问题!是什么' isNative'在你的代码? 最好复制代码并将其粘贴到此处。

答案 1 :(得分:0)

想出来。如果其他人遇到这个问题,似乎我有一个常规节点安装和一个节点(脉轮)安装和脉轮一个导致react-native的问题。卸载节点(chakra)后,react-native运行正常。