You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Project: nodejs-mobile-react-native
Version: 1.14.1
Mobile device: N/A
Mobile OS and version: N/A
Development Node.js: v8.10.0
Development platform: Linux mpsm-lt 4.15.0-54-generic #58-Ubuntu SMP Mon Jun 24 10:55:24 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
I'm using nodejs-mobile-react-native in react native, and it works fine.
But when I want to npm install firebase --save in the nodejs-assets/nodejs-project/ I get the following error:
> Task :nodejs-mobile-react-native:BuildNpmModulesarm64-v8a FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':nodejs-mobile-react-native:BuildNpmModulesarm64-v8a'.
> Process 'command 'npm'' finished with non-zero exit value 1
log:
...
npm verb lifecycle [email protected]~install: unsafe-perm in lifecycle false
npm verb lifecycle [email protected]~install: PATH: /usr/share/npm/bin/node-gyp-bin:/home/mpsm/Documents/remove/SocialSauceNative/android/build/nodejs-native-assets-temp-build/nodejs-native-assets-arm64-v8a/nodejs-project/node_modules/@firebase/firestore/node_modules/grpc/node_modules/.bin:/home/mpsm/Documents/remove/SocialSauceNative/android/build/nodejs-native-assets-temp-build/nodejs-native-assets-arm64-v8a/nodejs-project/node_modules/@firebase/firestore/node_modules/.bin:/home/mpsm/Documents/remove/SocialSauceNative/android/build/nodejs-native-assets-temp-build/nodejs-native-assets-arm64-v8a/nodejs-project/node_modules/.bin:/home/mpsm/Documents/remove/SocialSauceNative/android/../nodejs-assets/nodejs-project/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
npm verb lifecycle [email protected]~install: CWD: /home/mpsm/Documents/remove/SocialSauceNative/android/build/nodejs-native-assets-temp-build/nodejs-native-assets-arm64-v8a/nodejs-project/node_modules/@firebase/firestore/node_modules/grpc
npm info lifecycle [email protected]~install: Failed to exec install script
npm verb stack Error: [email protected] install: `node-pre-gyp install --fallback-to-build --library=static_library`
npm verb stack Exit status 1
npm verb stack at EventEmitter.<anonymous> (/usr/share/npm/lib/utils/lifecycle.js:232:16)
npm verb stack at emitTwo (events.js:126:13)
npm verb stack at EventEmitter.emit (events.js:214:7)
npm verb stack at ChildProcess.<anonymous> (/usr/share/npm/lib/utils/spawn.js:24:14)
npm verb stack at emitTwo (events.js:126:13)
npm verb stack at ChildProcess.emit (events.js:214:7)
npm verb stack at maybeClose (internal/child_process.js:925:16)
npm verb stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
npm verb pkgid [email protected]
npm verb cwd /home/mpsm/Documents/remove/SocialSauceNative/android/build/nodejs-native-assets-temp-build/nodejs-native-assets-arm64-v8a/nodejs-project
npm ERR! Linux 4.15.0-54-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "--verbose" "rebuild" "--build-from-source"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build --library=static_library`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-pre-gyp install --fallback-to-build --library=static_library'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the grpc package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build --library=static_library
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs grpc
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls grpc
npm ERR! There is likely additional logging output above.
npm verb exit [ 1, true ]
The text was updated successfully, but these errors were encountered:
Hi @Matthcw , looks like an error build grpc as a native module.
Are you able to share the complete logs in a https://gist.github.com , for example? This log is missing the actual build errors from compilation.
One likely suspect is that you might need to update to node 10 in the development machine so that nodejs-mobile-gyp has all the variables it needs.
error: unknown warning option '-Wno-cast-function-type'; did you mean '-Wno-bad-function-cast'? [-Werror,-Wunknown-warning-option]
make: *** [Release/obj.target/grpc_node/ext/byte_buffer.o] Error 1
Please give it a try. I'd also advise updating the development node to version 10 in case this doesn't work.
Project: nodejs-mobile-react-native
Version: 1.14.1
Mobile device: N/A
Mobile OS and version: N/A
Development Node.js: v8.10.0
Development platform: Linux mpsm-lt 4.15.0-54-generic #58-Ubuntu SMP Mon Jun 24 10:55:24 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
I'm using nodejs-mobile-react-native in react native, and it works fine.
But when I want to
npm install firebase --save
in the nodejs-assets/nodejs-project/ I get the following error:log:
The text was updated successfully, but these errors were encountered: