当我尝试为我的 expo 项目安装 firebase 包进行身份验证时,但安装包失败并引发了一些意外错误。
用于安装 firebase 包的命令
expo install firebase
Run Code Online (Sandbox Code Playgroud)
错误
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! grpc@1.24.2 install: `node-pre-gyp install --fallback-to-build --library=static_library`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the grpc@1.24.2 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:
npm ERR! C:\Users\Saswat\AppData\Roaming\npm-cache\_logs\2021-01-04T02_22_39_477Z-debug.log
npm exited with non-zero code: …Run Code Online (Sandbox Code Playgroud)