React native 领域反应本机错误

React native 领域反应本机错误,react-native,realm,React Native,Realm,当我尝试用我的react原生android应用程序安装Realm时,出现以下错误: npm install --save realm > -realm@0.15.0 install C:\Users\Julia\AppTest\node_modules\realm > -node-pre-gyp install --fallback-to-build >node-pre-gyp ERR! Tried to download(404): https://static.rea

当我尝试用我的react原生android应用程序安装Realm时,出现以下错误:

npm install --save realm

> -realm@0.15.0 install C:\Users\Julia\AppTest\node_modules\realm

> -node-pre-gyp install --fallback-to-build

>node-pre-gyp ERR! Tried to download(404): https://static.realm.io/node-pre-gyp/realm-v0.15.0-node-v48-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for realm@0.15.0 and node@6.9.1 (node-v48 ABI) (falling back to source compile with node-gyp)

C:\Users\Julia\AppTest\node_modules\realm>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" clean )  else (node "" clean )

C:\Users\Julia\AppTest\node_modules\realm>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" configure --fallback-to-build --module=C:\Users\Julia\AppTest\node_modules\realm\compiled\node-v48_win32_x64\realm.node --module_name=realm --module_path=C:\Users\Julia\AppTest\node_modules\realm\compiled\node-v48_win32_x64 )  else (node "" configure --fallback-to-build --module=C:\Users\Julia\AppTest\node_modules\realm\compiled\node-v48_win32_x64\realm.node --module_name=realm --module_path=C:\Users\Julia\AppTest\node_modules\realm\compiled\node-v48_win32_x64 )
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack     at failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:449:14)
gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:404:11
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:123:15)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\\Users\\Julia\\AppTest\\node_modules\\realm\\compiled\\node-v48_win32_x64\\realm.node" "--module_name=realm" "--module_path=C:\\Users\\Julia\\AppTest\\node_modules\\realm\\compiled\\node-v48_win32_x64"
gyp ERR! cwd C:\Users\Julia\AppTest\node_modules\realm
gyp ERR! node -v v6.9.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp.cmd configure --fallback-to-build --module=C:\Users\Julia\AppTest\node_modules\realm\compiled\node-v48_win32_x64\realm.node --module_name=realm --module_path=C:\Users\Julia\AppTest\node_modules\realm\compiled\node-v48_win32_x64' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (C:\Users\Julia\AppTest\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:877:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
node-pre-gyp ERR! System Windows_NT 10.0.14393
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Julia\\AppTest\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\Julia\AppTest\node_modules\realm
node-pre-gyp ERR! node -v v6.9.1
node-pre-gyp ERR! node-pre-gyp -v v0.6.32
node-pre-gyp ERR! not ok
Failed to execute 'node-gyp.cmd configure --fallback-to-build --module=C:\Users\Julia\AppTest\node_modules\realm\compiled\node-v48_win32_x64\realm.node --module_name=realm --module_path=C:\Users\Julia\AppTest\node_modules\realm\compiled\node-v48_win32_x64' (1)
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--save" "realm"
npm ERR! node v6.9.1
npm ERR! npm  v3.10.8
npm ERR! code ELIFECYCLE

npm ERR! realm@0.15.0 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the realm@0.15.0 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the realm package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs realm
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls realm
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\Julia\AppTest\npm-debug.log
npm安装--保存域
> -realm@0.15.0安装C:\Users\Julia\AppTest\node\u modules\realm
>-节点预gyp安装--回退到构建
>节点前gyp错误!已尝试下载(404):https://static.realm.io/node-pre-gyp/realm-v0.15.0-node-v48-win32-x64.tar.gz
节点前gyp错误!找不到的预构建二进制文件realm@0.15.0及node@6.9.1(node-v48 ABI)(使用节点gyp返回到源代码编译)
C:\Users\Julia\AppTest\node\u modules\realm>如果未定义npm\u config\u node\u gyp(节点“C:\Program Files\nodejs\node\node\u modules\npm\bin\node gyp bin\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ node\node gyp.js“清理”否则(节点“清理”)
C:\Users\Julia\AppTest\node\u modules\realm>如果未定义npm\u config\u node\u gyp(节点“C:\Program Files\nodejs\node\u modules\npm\bin\node gyp bin\\\\\\\\\\\\\\\\ node\u modules\node gyp\bin\node gyp.js”配置--fallback to build--module=C:\Users\Julia\AppTest\node\u modules\realm\compiled\node-v48\u win32\u x64\realm.node--module\u name=realm--module\u path=C:\Users\Julia\AppTest\node\u modules\realm\compiled\node-v48\u win32\u x64)else(节点“”配置--fallback to build--module=C:\Users\Julia\AppTest\node\u modules\realm\compiled\node-v48\u win32\u x64\realm.node--module\u name=realm--module\u path=C:\Users\Julia\AppTest\node\u modules\realm\compiled\node-v48\u win32\u x64)
哎呀!配置错误
哎呀!堆栈错误:找不到Python可执行文件“Python”,可以设置Python env变量。
哎呀!failNoPython上的堆栈(C:\Program Files\nodejs\node\u modules\npm\node\u modules\node gyp\lib\configure.js:449:14)
哎呀!堆栈位于C:\Program Files\nodejs\node\u modules\npm\node\u modules\node gyp\lib\configure.js:404:11
哎呀!堆栈在FSReqWrap.oncomplete(fs.js:123:15)
哎呀!系统Windows\u NT 10.0.14393
哎呀!命令“C:\\Program Files\\nodejs\\node.exe”C:\\Program Files\\nodejs\\node\u modules\\npm\\node\u modules\\node gyp\\bin\\node gyp.js“configure”“--fallback to build”“--module=C:\\Users\\Julia\\AppTest\\node\u modules\\realm\\compiled\\node-v48\u win32\u x64\\realm.node”“--module\u name=realm”“--module\u path=C:\\Users\\Julia\\AppTest\\node\u modules\\realm\\compiled\\node-v48\u win32\u x64”
gyp ERR!cwd C:\Users\Julia\AppTest\node\u modules\realm
gyp ERR!节点-v6.9.1
gyp ERR!节点gyp-v3.4.0
哎呀!不行
节点预gyp错误!生成错误
node pre-gyp ERR!堆栈错误:未能执行'node-gyp.cmd configure--fallback to build--module=C:\Users\Julia\AppTest\node\u modules\realm\compiled\node-v48\u win32\u x64\realm.node--module name=realm--module\u path=C:\Users\Julia AppTest\node\u modules\realm\compiled\node-v48\u win32\u x64'(1)

node pre-gyp ERR!stack at ChildProcess.”,但是,当我在命令Promt上安装Realm时,我收到此错误。

在Windows计算机上开发时,我们当前遇到React-Native问题。我们正在修复此问题,您可以跟踪此问题