I am trying to install Realm for React Native. After running
npm install --save realm
I get the error:
731 warn [email protected] requires a peer of react@^0.13.0 || ^0.14.0 || ^15.0.0 but none was installed.
2732 verbose stack Error: [email protected] install: `node-pre-gyp install --fallback-to-build`
2732 verbose stack spawn ENOENT
2732 verbose stack at ChildProcess.<anonymous> (/Users/agerson/.nvm/versions/node/v4.8.2/lib/node_modules/npm/lib/utils/spawn.js:33:16)
2732 verbose stack at emitTwo (events.js:87:13)
2732 verbose stack at ChildProcess.emit (events.js:172:7)
2732 verbose stack at maybeClose (internal/child_process.js:862:16)
2732 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:222:5)
2733 verbose pkgid [email protected]
2734 verbose cwd /Users/agerson/Desktop/CGPSApp
2735 verbose Darwin 16.5.0
2736 verbose argv "/Users/agerson/.nvm/versions/node/v4.8.2/bin/node" "/Users/agerson/.nvm/versions/node/v4.8.2/bin/npm" "install" "--save" "realm"
2737 verbose node v4.8.2
2738 verbose npm v4.5.0
2739 error file sh
2740 error code ELIFECYCLE
2741 error errno ENOENT
2742 error syscall spawn
2743 error [email protected] install: `node-pre-gyp install --fallback-to-build`
2743 error spawn ENOENT
2744 error Failed at the [email protected] install script 'node-pre-gyp install --fallback-to-build'.
I worked around it by manually installing node-pre-gyp with
npm install --save node-pre-gyp
Hope thats ok...
Hi, node-pre-gyp is a dependency of realm-js from quite some time now. I think somehow you didn't get all the dependencies when this happened. Since you resolved it I will close this issue.
hi, I installed node-pre-gyp but i still get error node-pre-gyp install --fallback-to-build :((
@chellongCoder have you found a solution for node-pre-gyp install --fallback-to-build?
I am working in Mac and I get "realm spawn code ENOENT" in ios & Android, it seems node-pre-gyp is the reason for that.
Hi, I have the same problem. Have you solved it
i also have the problem , and try many methods , include npm the package node-pre-gyp, but not solved it ,
Why do you close issues without fixing them 馃憥
Please don't keep commenting on closed issues but create a new issue with all relevant details to reproduce the problem. Thanks!
Most helpful comment
hi, I installed node-pre-gyp but i still get error node-pre-gyp install --fallback-to-build :((