question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to install realm

See original GitHub issue

Hi 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:closed
  • Created 4 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

6reactions
mattmogfordcommented, Jul 3, 2019

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.

4reactions
nirinchevcommented, Jun 5, 2019

You need node 10.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Install Realm for iOS, macOS, tvOS, and watchOS - MongoDB
Select the Package Products. Select both Realm and RealmSwift , then click Add Package .
Read more >
realm - npm
Start using realm in your project by running `npm i realm`. ... Asynchronously submits install information to Realm. Why are we doing this?...
Read more >
How to Install the Realm Connect App on Android
How to Install the Realm Connect App on Android. 1. Open the Google Store icon. 2. Use the Search option and type in...
Read more >
How to Install and Add Data to Realm Database in Android?
Realm Database is a service which is provided by MongoDb which is used to store data in users device locally. With the help...
Read more >
How to install Realm - iOS Video Tutorial - LinkedIn
How to install Realm ... - [Male Speaker] Before we can get started using Realm, we first of all need to obtain a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found