-
Notifications
You must be signed in to change notification settings - Fork 586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't install Realm for react-native #1857
Comments
Faced this issue too (I tried to install every version from 2.8.2 to 2.6.0). I think, that the reason is a combination of MacOS + nodejs 10. Realm repos doesn't contain precompiled versions for node10, that's why node is trying to build them from source:
In my case, there is an error:
I think, that this issue can be a source of solution: Ways to solveI think that you could try to create precompiled versions for node10. Version of Realm and ToolingRealm JS SDK Version: 2.8.2 ~ 2.6.0 |
As noted in #1813 we don't support node 10 yet. We hope that we can work on it once our dependencies' dependencies are updated. |
Goals
Install Realm as per https://realm.io/docs/javascript/latest/#getting-started "npm install --save realm" fails
Expected Results
Realm should install as described
Actual Results
Installation failed with compilation errors
CXX(target) Release/obj.target/realm/src/node/node_init.o
In file included from ../src/node/node_init.cpp:19:
In file included from ../src/node/node_init.hpp:29:
../src/node/node_class.hpp:306:25: error: no member named 'Callee' in 'v8::FunctionCallbackInfov8::Value'
F(isolate, info.Callee(), info.This(), arguments.size(), arguments.data(), return_value);
10 errors generated.
make: *** [Release/obj.target/realm/src/node/node_init.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:235:12)
gyp ERR! System Darwin 17.3.0
Steps to Reproduce
Code Sample
Version of Realm and Tooling
The text was updated successfully, but these errors were encountered: