我正在尝试使用firebase作为我的数据库。我运行了npm install angularfire2 firebase --save
并获得了以下错误堆栈:
C:\ Users \ Batbrain \ Desktop \ Angular5 \ GitHub \ travelapp> npm install angularfire2 firebase --save
grpc@1.9.0安装C:\ Users \ Batbrain \ Desktop \ Angular5 \ GitHub \ travelapp \ node_modules \ grpc
node-pre-gyp install --fallback-to-build --library = static_library
node-pre-gyp ERR!试图下载(未定义):https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.9.0/node-v57-win32-x64-unknown.tar.gz
- node-pre-gyp ERR!找不到grpc@1.9.0和node@8.9.4的预构建二进制文件(node-v57 ABI,未知)(使用node-gyp回退到源代码编译)
- gyp ERR!配置错误
- gyp ERR!堆栈错误:无法找到Python可执行文件" python",您可以设置PYT HON env变量。
- gyp ERR!堆栈在PythonFinder.failNoPython(C:\ Program Files \ nodejs \ node_mo dules \ NPM \ node_modules \节点-GYP \ lib中\ configure.js:483:19)
- gyp ERR!在PythonFinder堆栈。 (C:\ Program Files \ nodejs \ node_mod ULES \ NPM \ node_modules \节点-GYP \ lib中\ configure.js:508:16)
- gyp ERR!堆栈在C:\ Program Files \ nodejs \ node_modules \ npm \ node_modules \ grac eful-FS \ polyfills.js:284:29
- gyp ERR!堆栈在FSReqWrap.oncomplete(fs.js:152:21)
- gyp ERR!系统Windows_NT 6.3.9600
- gyp ERR!命令" C:\ Program Files \ nodejs \ node.exe" " C:\ Program Files \ nodej 小号\ node_modules \ NPM \ node_modules \节点-GYP \ BIN \节点gyp.js" "配置" " - ˚F allback到构建" " - 库= static_library" " - 模块= C:\用户\ Batbrain \台 顶部\ Angular5 \ GitHub的\ travelapp \ node_modules \ GRPC \ SRC \节点\ extension_binar Y \节点-V57-Win32的x64的未知\ grpc_node.node" " - MODULE_NAME = grpc_node" " - MODU le_path = C:\用户\ Batbrain \桌面\ Angular5 \ GitHub的\ travelapp \ node_modules \ \ GRPC \ SRC \节点\ extension_binary \节点-V57-Win32的x64的未知"
- gyp ERR! cwd C:\ Users \ Batbrain \ Desktop \ Angular5 \ GitHub \ travelapp \ node_modules \ gr PC
- gyp ERR! node -v v8.9.4
- gyp ERR! node-gyp -v v3.6.2
- gyp ERR!不行。
- node-pre-gyp ERR!构建错误
- node-pre-gyp ERR!堆栈错误:无法执行' C:\ Program Files \ nodejs \ node.e xe C:\ Program Files \ nodejs \ node_modules \ npm \ node_modules \ node-gyp \ bin \ node-gyp.j 配置--fallback-to-build --library = static_library --module = C:\ Users \ Batbr 艾因\桌面\ Angular5 \ GitHub的\ travelapp \ node_modules \ GRPC的\ src \节点\ extension_binar y \ node-v57-win32-x64-unknown \ grpc_node.node --module_name = grpc_node --module_pat H = C:\用户\ Batbrain \桌面\ Angular5 \ GitHub的\ travelapp \ node_modules \ GRPC \ SRC \节点 \ extension_binary \节点-V57-Win32的x64的未知' (1) node-pre-gyp ERR!在ChildProcess堆栈。 (C:\用户\ Batbrain \ Deskt 运算\ Angular5 \ GitHub的\ travelapp \ node_modules \ GRPC \ node_modules \节点预GYP \ lib中\ UTI 升\ compile.js:83:29)
- node-pre-gyp ERR!堆栈在emitTwo(events.js:126:13)
- node-pre-gyp ERR!在ChildProcess.emit堆栈(events.js:214:7)
- node-pre-gyp ERR!堆栈在maybeClose(内部/ child_process.js:925:16)
- node-pre-gyp ERR!在Process.ChildProcess._handle.onexit堆栈(内部/ chi ld_process.js:209:5)
- node-pre-gyp ERR!系统Windows_NT 6.3.9600
- node-pre-gyp ERR!命令" C:\ Program Files \ nodejs \ node.exe" " C:\用户\ Batb 雨\桌面\ Angular5 \ GitHub的\ travelapp \ node_modules \ GRPC \ node_modules \节点预GYP-\ BIN \节点预GYP" "安装" " - 后退到构建" " - 库=静态 _LIBRARY"
- node-pre-gyp ERR! cwd C:\ Users \ Batbrain \ Desktop \ Angular5 \ GitHub \ travelapp \ node_m odules \ GRPC
- node-pre-gyp ERR! node -v v8.9.4
- node-pre-gyp ERR! node-pre-gyp -v v0.6.39
- node-pre-gyp ERR!不行 无法执行' C:\ Program Files \ nodejs \ node.exe C:\ Program Files \ nodejs \ node _modules \ npm \ node_modules \ node-gyp \ bin \ node-gyp.js configure --fallback-to-build --library = static_library --module = C:\ Users \ Batbrain \ Desktop \ Angular5 \ GitHub \ tra velapp \ node_modules \ GRPC \ SRC \节点\ extension_binary \节点-V57-Win32的x64的未知\ GR pc_node.node --module_name = grpc_node --module_path = C:\ Users \ Batbrain \ Desktop \ Ang ular5 \ GitHub的\ travelapp \ node_modules \ GRPC \ SRC \节点\ extension_binary \节点-V57-WIN3 2-x64的未知' (1) npm WARN可选SKIPPING OPTIONAL DEPENDENCY:fsevents@1.1.3(node_modules \ fse 通风口): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY:不支持的fsevents平台@ 1.1.3:想要{" os":" darwin"," arch":" any"}(当前:{" OS":"的win32""拱":" 64"} )
- npm ERR!代码ELIFECYCLE
- npm ERR! errno 1
- npm ERR! grpc@1.9.0安装:
node-pre-gyp install --fallback-to-build --library=static_library
- npm ERR!退出状态1
- npm ERR!
- npm ERR! grpc@1.9.0安装脚本失败。
npm ERR!这可能不是npm的问题。可能还有其他日志 ging输出上面。
npm ERR!可以在以下位置找到此运行的完整日志: 错误的ERR! C:\ Users \用户Batbrain \应用程序数据\漫游\ NPM-cache_logs \ 2018-02-15T04_11_ 21_993Z-的debug.log
这是我的环境详情: