realm-js: Installing realm 3.1.0 fails during node-pre-gyp install --fallback-to-build
I’ve tried installing this on Windows, Ubuntu and MacOS. All fail with the same error.
$ npm install
> realm@3.1.0 install C:\Workspaces\ThreadLearning\thread-rest\node_modules\realm
> node-pre-gyp install --fallback-to-build
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp ERR! Completion callback never invoked!
node-pre-gyp ERR! System Windows_NT 10.0.17134
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Workspaces\\ThreadLearning\\thread-rest\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Workspaces\ThreadLearning\thread-rest\node_modules\realm
node-pre-gyp ERR! node -v v10.16.3
node-pre-gyp ERR! node-pre-gyp -v v0.13.0
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 7
- Comments: 17 (2 by maintainers)
Node v12 is not supported by Realm v3.x as mentioned here: https://github.com/realm/realm-js/issues/2880#issuecomment-628665377
As @markwolff mentioned in mapbox/node-pre-gyp/issues/477
not ideal but a workaround is to manually add "node-pre-gyp": "0.12.0" as a devDev to your package.jsonworked for me
for those who are still suffering from this, I solved this by downgrade my Node.js version to v10.18.0. As suggested by @andrekovac , Realm v3.x doesn’t support node12
Which version of node you are using?
In previouse realmjs version
node 12didn’t worked for me. Downgrade tonode 10fixed the issue for me.This happens reliably with latest yarn with nodejs v12.6.0 and realm version 2.29.2:
First, 404s:
And then plentiful gyp errors:
This should be fixed now as long as your package-lock.json does not try to install
minipass@2.8.4: see https://github.com/mapbox/node-pre-gyp/issues/477#issuecomment-534630617Looks like there was some dependency change that broke node-pre-gyp https://github.com/mapbox/node-pre-gyp/issues/477