Pro*_*mer 5 firebase react-native expo
我正在使用 expo cli 构建一个反应本机移动应用程序,并且我正在尝试安装 firebase 以添加聊天和通知功能,并且在应用此命令时收到此错误
\n世博会安装 firebase
\n有人有办法解决这个问题吗?
\n我正在使用 expo cli 构建一个反应本机移动应用程序,并且我正在尝试安装 firebase 以添加聊天和通知功能,并且在应用此命令时收到此错误
\n世博会安装 firebase
\n有人有办法解决这个问题吗?
\n [4/5] \xe2\xa0\xa0 grpc\nerror C:\\Users\\Tech One\\Desktop\\FSW\\FinalProject\\latest\\backend\\fueldelivery_react\\node_modules\\grpc: Command failed.\nExit code: 1\nCommand: node-pre-gyp install --fallback-to-build --library=static_library\nArguments:\nDirectory: C:\\Users\\Tech One\\Desktop\\FSW\\FinalProject\\latest\\backend\\fueldelivery_react\\node_modules\\grpc\nOutput:\nnode-pre-gyp info it worked if it ends with ok\nnode-pre-gyp info using node-pre-gyp@0.14.0\nnode-pre-gyp info using node@14.15.1 | win32 | x64\nnode-pre-gyp WARN Using request for node-pre-gyp https download\nnode-pre-gyp info check checked for "C:\\Users\\Tech One\\Desktop\\FSW\\FinalProject\\latest\\backend\\fueldelivery_react\\node_modules\\grpc\\src\\node\\extension_binary\\node-v83-win32-x64-unknown\\grpc_node.node" (not found)\nnode-pre-gyp http GET https://node-precompiled-binaries.grpc.io/grpc/v1.24.2/node-v83-win32-x64-unknown.tar.gz\nnode-pre-gyp http 404 https://node-precompiled-binaries.grpc.io/grpc/v1.24.2/node-v83-win32-x64-unknown.tar.gz\nnode-pre-gyp WARN Tried to download(404): https://node-precompiled-binaries.grpc.io/grpc/v1.24.2/node-v83-win32-x64-unknown.tar.gz\nnode-pre-gyp WARN Pre-built binaries not found for grpc@1.24.2 and node@14.15.1 (node-v83 ABI, unknown) (falling back to source compile with node-gyp)\nnode-pre-gyp http 404 status code downloading tarball https://node-precompiled-binaries.grpc.io/grpc/v1.24.2/node-v83-win32-x64-unknown.tar.gz\ngyp info it worked if it ends with ok\ngyp info using node-gyp@7.1.2\ngyp info using node@14.15.1 | win32 | x64\ngyp info ok\ngyp info it worked if it ends with ok\ngyp info using node-gyp@7.1.2\ngyp info using node@14.15.1 | win32 | x64\ngyp info find Python using Python version 3.9.0 found at "C:\\Python39\\python.exe"\ngyp ERR! find VS\ngyp ERR! find VS msvs_version not set from command line or npm config\ngyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt\ngyp ERR! find VS checking VS2019 (16.8.30717.126) found at:\ngyp ERR! find VS "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools"\ngyp ERR! find VS - "Visual Studio C++ core features" missing\ngyp ERR! find VS checking VS2017 (15.9.28307.1321) found at:\ngyp ERR! find VS "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community"\ngyp ERR! find VS - "Visual Studio C++ core features" missing\ngyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use\ngyp ERR! find VS looking for Visual Studio 2015\ngyp ERR! find VS - not found\ngyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8\ngyp ERR! find VS\ngyp ERR! find VS **************************************************************\ngyp ERR! find VS You need to install the latest version of Visual Studio\ngyp ERR! find VS including the "Desktop development with C++" workload.\ngyp ERR! find VS For more information consult the documentation at:\ngyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows\ngyp ERR! find VS **************************************************************\ngyp ERR! find VS\ngyp ERR! configure error\ngyp ERR! stack Error: Could not find any Visual Studio installation to use\ngyp ERR! stack at VisualStudioFinder.fail (C:\\Users\\Tech One\\Desktop\\FSW\\FinalProject\\latest\\backend\\fueldelivery_react\\node_modules\\node-gyp\\lib\\find-visualstudio.js:121:47)\ngyp ERR! stack at C:\\Users\\Tech One\\Desktop\\FSW\\FinalProject\\latest\\backend\\fueldelivery_react\\node_modules\\node-gyp\\lib\\find-visualstudio.js:74:16\ngyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\\Users\\Tech One\\Desktop\\FSW\\FinalProject\\latest\\backend\\fueldelivery_react\\node_modules\\node-gyp\\lib\\find-visualstudio.js:351:14)\ngyp ERR! stack at C:\\Users\\Tech One\\Desktop\\FSW\\FinalProject\\latest\\backend\\fueldelivery_react\\node_modules\\node-gyp\\lib\\find-visualstudio.js:70:14\ngyp ERR! stack at C:\\Users\\Tech One\\Desktop\\FSW\\FinalProject\\latest\\backend\\fueldelivery_react\\node_modules\\node-gyp\\lib\\find-visualstudio.js:372:16\ngyp ERR! stack at C:\\Users\\Tech One\\Desktop\\FSW\\FinalProject\\latest\\backend\\fueldelivery_react\\node_modules\\node-gyp\\lib\\util.js:54:7\ngyp ERR! stack at C:\\Users\\Tech One\\Desktop\\FSW\\FinalProject\\latest\\backend\\fueldelivery_react\\node_modules\\node-gyp\\lib\\util.js:33:16\ngyp ERR! stack at ChildProcess.exithandler (child_process.js:315:5)\ngyp ERR! stack at ChildProcess.emit (events.js:315:20)\ngyp ERR! stack at maybeClose (internal/child_process.js:1048:16)\ngyp ERR! System Windows_NT 10.0.19041\ngyp ERR! command "C:\\\\Program Files\\\\nodejs\\\\node.exe" "C:\\\\Users\\\\Tech One\\\\Desktop\\\\FSW\\\\FinalProject\\\\latest\\\\backend\\\\fueldelivery_react\\\\node_modules\\\\node-gyp\\\\bin\\\\node-gyp.js" "configure" "--fallback-to-build" "--library=static_library" "--module=C:\\\\Users\\\\Tech One\\\\Desktop\\\\FSW\\\\FinalProject\\\\latest\\\\backend\\\\fueldelivery_react\\\\node_modules\\\\grpc\\\\src\\\\node\\\\extension_binary\\\\node-v83-win32-x64-unknown\\\\grpc_node.node" "--module_name=grpc_node" "--module_path=C:\\\\Users\\\\Tech One\\\\Desktop\\\\FSW\\\\FinalProject\\\\latest\\\\backend\\\\fueldelivery_react\\\\node_modules\\\\grpc\\\\src\\\\node\\\\extension_binary\\\\node-v83-win32-x64-unknown" "--napi_version=7" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v83"\ngyp ERR! cwd C:\\Users\\Tech One\\Desktop\\FSW\\FinalProject\\latest\\backend\\fueldelivery_react\\node_modules\\grpc\ngyp ERR! node -v v14.15.1\ngyp ERR! node-gyp -v v7.1.2\ngyp ERR! not ok\nnode-pre-gyp ERR! build error\nnode-pre-gyp ERR! stack Error: Failed to execute 'C:\\Program Files\\nodejs\\node.exe C:\\Users\\Tech One\\Desktop\\FSW\\FinalProject\\latest\\backend\\fueldelivery_react\\node_modules\\node-gyp\\bin\\node-gyp.js configure --fallback-to-build --library=static_library --module=C:\\Users\\Tech One\\Desktop\\FSW\\FinalProject\\latest\\backend\\fueldelivery_react\\node_modules\\grpc\\src\\node\\extension_binary\\node-v83-win32-x64-unknown\\grpc_node.node --module_name=grpc_node --module_path=C:\\Users\\Tech One\\Desktop\\FSW\\FinalProject\\latest\\backend\\fueldelivery_react\\node_modules\\grpc\\src\\node\\extension_binary\\node-v83-win32-x64-unknown --napi_version=7 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1)\nnode-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\\Users\\Tech One\\Desktop\\FSW\\FinalProject\\latest\\backend\\fueldelivery_react\\node_modules\\node-pre-gyp\\lib\\util\\compile.js:83:29)\nnode-pre-gyp ERR! stack at ChildProcess.emit (events.js:315:20)\nnode-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1048:16)\nnode-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)\nnode-pre-gyp ERR! System Windows_NT 10.0.19041\nnode-pre-gyp ERR! command "C:\\\\Program Files\\\\nodejs\\\\node.exe" "C:\\\\Users\\\\Tech One\\\\Desktop\\\\FSW\\\\FinalProject\\\\latest\\\\backend\\\\fueldelivery_react\\\\node_modules\\\\node-pre-gyp\\\\bin\\\\node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"\nnode-pre-gyp ERR! cwd C:\\Users\\Tech One\\Desktop\\FSW\\FinalProject\\latest\\backend\\fueldelivery_react\\node_modules\\grpc\nnode-pre-gyp ERR! node -v v14.15.1\nnode-pre-gyp ERR! node-pre-gyp -v v0.14.0\nnode-pre-gyp ERR! not ok\nFailed to execute 'C:\\Program Files\\nodejs\\node.exe C:\\Users\\Tech One\\Desktop\\FSW\\FinalProject\\latest\\backend\\fueldelivery_react\\node_modules\\node-gyp\\bin\\node-gyp.js configure --fallback-to-build --library=static_library --module=C:\\Users\\Tech One\\Desktop\\FSW\\FinalProject\\latest\\backend\\fueldelivery_react\\node_modules\\grpc\\src\\node\\extension_binary\\node-v83\n\n\n\nyarnpkg exited with non-zero code: 1\nError: yarnpkg exited with non-zero code: 1\n at ChildProcess.completionListener (C:\\Users\\Tech One\\AppData\\Roaming\\npm\\node_modules\\expo-cli\\node_modules\\@expo\\spawn-async\\src\\spawnAsync.ts:65:13)\n at Object.onceWrapper (events.js:422:26)\n at ChildProcess.emit (events.js:315:20)\n at ChildProcess.cp.emit (C:\\Users\\Tech One\\AppData\\Roaming\\npm\\node_modules\\expo-cli\\node_modules\\cross-spawn\\lib\\enoent.js:34:29)\n at maybeClose (internal/child_process.js:1048:16)\n at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)\n ...\n at Object.spawnAsync [as default] (C:\\Users\\Tech One\\AppData\\Roaming\\npm\\node_modules\\expo-cli\\node_modules\\@expo\\spawn-async\\src\\spawnAsync.ts:26:19)\n at YarnPackageManager._runAsync (C:\\Users\\Tech One\\AppData\\Roaming\\npm\\node_modules\\expo-cli\\node_modules\\@expo\\package-manager\\src\\NodePackageManagers.ts:288:31)\n at YarnPackageManager.addAsync (C:\\Users\\Tech One\\AppData\\Roaming\\npm\\node_modules\\expo-cli\\node_modules\\@expo\\package-manager\\src\\NodePackageManagers.ts:241:16)\n at installAsync (C:\\Users\\Tech One\\AppData\\Roaming\\npm\\node_modules\\expo-cli\\src\\commands\\install.ts:117:3)\n at Command.<anonymous> (C:\\Users\\Tech One\\AppData\\Roaming\\npm\\node_modules\\expo-cli\\src\\exp.ts:302:7)\n\n\nRun Code Online (Sandbox Code Playgroud)\n
小智 3
使用npm install @mapbox/node-pre-gyp --save,然后卸载您尝试安装的 Firebase,使用npm uninstall firebase,现在使用npm install firebase。
| 归档时间: |
|
| 查看次数: |
1067 次 |
| 最近记录: |