How to install realm
See original GitHub issueHi How Can I install the Realm ?
I mean which version of node should be used to install it ?
I have tried almost all version but seems very difficult to get it work.
Expected Results
I expect at least to get npm install done it is not working
Actual Results
-napi_build_version=0" “–node_napi_label=node-v57”
gyp ERR! cwd /Users/pritambolenwar/Repository/PROJECTS/ModemConfigurator/node_modules/realm
gyp ERR! node -v v8.16.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute ‘/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/Users/pritambolenwar/Repository/PROJECTS/ModemConfigurator/node_modules/realm/compiled/node-v57_darwin_x64/realm.node --module_name=realm --module_path=/Users/pritambolenwar/Repository/PROJECTS/ModemConfigurator/node_modules/realm/compiled/node-v57_darwin_x64 --napi_version=4 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v57’ (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/Users/pritambolenwar/Repository/PROJECTS/ModemConfigurator/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:126:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:915:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
node-pre-gyp ERR! System Darwin 18.2.0
node-pre-gyp ERR! command “/usr/local/bin/node” “/Users/pritambolenwar/Repository/PROJECTS/ModemConfigurator/node_modules/.bin/node-pre-gyp” “install” “–fallback-to-build”
node-pre-gyp ERR! cwd /Users/pritambolenwar/Repository/PROJECTS/ModemConfigurator/node_modules/realm
node-pre-gyp ERR! node -v v8.16.0
node-pre-gyp ERR! node-pre-gyp -v v0.11.0
node-pre-gyp ERR! not ok
Failed to execute ‘/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/Users/pritambolenwar/Repository/PROJECTS/ModemConfigurator/node_modules/realm/compiled/node-v57_darwin_x64/realm.node --module_name=realm --module_path=/Users/pritambolenwar/Repository/PROJECTS/ModemConfigurator/node_modules/realm/compiled/node-v57_darwin_x64 --napi_version=4 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v57’ (1)
npm WARN react-native@0.59.1 requires a peer of react@16.8.3 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 install: node install
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! realm@2.28.1 install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the realm@2.28.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
Version of Realm and Tooling
- Realm JS SDK Version: 2.28.0
 - Node or React Native: 0.59
 - Client OS & Version: Mojave 10.14.3
 - Which debugger for React Native: Yes
 
Issue Analytics
- State:
 - Created 4 years ago
 - Comments:13 (5 by maintainers)
 

Top Related StackOverflow Question
Prerequisite Node 10 should be noted in the getting started documentation for React Native. It is on the Node.js tab but not React Native. Will save a lot of people some time.
You need node 10.