Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/firebase/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
npm安装错误--保存@angular/fire@5.1.1 firebase@5.8.4哎呀!构建错误_Angular_Firebase - Fatal编程技术网

npm安装错误--保存@angular/fire@5.1.1 firebase@5.8.4哎呀!构建错误

npm安装错误--保存@angular/fire@5.1.1 firebase@5.8.4哎呀!构建错误,angular,firebase,Angular,Firebase,我正在编写我的第一个firebase,发现安装过程很困难。我尝试了以下命令 npm安装--保存@angular/fire@5.1.1 firebase@5.8.4 带有admin的cmd引用未找到python 在以下情况下安装 npm安装--全局--生产windows构建工具 npm安装——gloabl节点gyp 它花了好几次才最终完成 当我再次运行firebase安装命令时,它给了我以下错误 我读了很多stack帖子,我重复了同样的安装步骤,但没有成功。 非常感谢您的帮助。谢谢 gyp ERR

我正在编写我的第一个firebase,发现安装过程很困难。我尝试了以下命令

npm安装--保存@angular/fire@5.1.1 firebase@5.8.4

带有admin的cmd引用未找到python

在以下情况下安装

npm安装--全局--生产windows构建工具

npm安装——gloabl节点gyp

它花了好几次才最终完成

当我再次运行firebase安装命令时,它给了我以下错误

我读了很多stack帖子,我重复了同样的安装步骤,但没有成功。 非常感谢您的帮助。谢谢

gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Windows_NT 10.0.18362
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "build" "--fallback-to-build" "--library=static_library" "--module=D:\\Projects\\Marvelocity\\node_modules\\grpc\\src\\node\\extension_binary\\node-v83-win32-x64-unknown\\grpc_node.node" "--module_name=grpc_node" "--module_path=D:\\Projects\\Marvelocity\\node_modules\\grpc\\src\\node\\extension_binary\\node-v83-win32-x64-unknown" "--napi_version=6" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v83"
gyp ERR! cwd D:\Projects\Marvelocity\node_modules\grpc
gyp ERR! node -v v14.3.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --library=static_library --module=D:\Projects\Marvelocity\node_modules\grpc\src\node\extension_binary\node-v83-win32-x64-unknown\grpc_node.node --module_name=grpc_node --module_path=D:\Projects\Marvelocity\node_modules\grpc\src\node\extension_binary\node-v83-win32-x64-unknown --napi_version=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (D:\Projects\Marvelocity\node_modules\grpc\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:1051:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
node-pre-gyp ERR! System Windows_NT 10.0.18362
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "D:\\Projects\\Marvelocity\\node_modules\\grpc\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
node-pre-gyp ERR! cwd D:\Projects\Marvelocity\node_modules\grpc
node-pre-gyp ERR! node -v v14.3.0
node-pre-gyp ERR! node-pre-gyp -v v0.12.0
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --library=static_library --module=D:\Projects\Marvelocity\node_modules\grpc\src\node\extension_binary\node-v83-win32-x64-unknown\grpc_node.node --module_name=grpc_node --module_path=D:\Projects\Marvelocity\node_modules\grpc\src\node\extension_binary\node-v83-win32-x64-unknown --napi_version=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1)
npm WARN codelyzer@5.2.1 requires a peer of tslint@^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/fire@5.1.1 requires a peer of @angular/common@>=6.0.0 <8 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/fire@5.1.1 requires a peer of @angular/core@>=6.0.0 <8 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/fire@5.1.1 requires a peer of @angular/platform-browser@>=6.0.0 <8 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/fire@5.1.1 requires a peer of @angular/platform-browser-dynamic@>=6.0.0 <8 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/fire@5.1.1 requires a peer of zone.js@^0.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\webpack-dev-server\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\watchpack-chokidar2\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! grpc@1.18.0 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.18.0 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\John\AppData\Roaming\npm-cache\_logs\2020-09-11T17_13_16_147Z-debug.log
gyp ERR!构建错误
哎呀!堆栈错误:`C:\Program Files(x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe`失败,退出代码:1
哎呀!堆栈位于ChildProcess.onExit(C:\Program Files\nodejs\node\u modules\npm\node\u modules\node gyp\lib\build.js:194:23)
哎呀!ChildProcess.emit处的堆栈(events.js:315:20)
哎呀!在Process.ChildProcess.\u handle.onexit(internal/child\u Process.js:276:12)处堆栈
哎呀!系统Windows\u NT 10.0.18362
哎呀!命令“C:\\Program Files\\nodejs\\node.exe”“C:\\Program Files\\nodejs\\node\u modules\\npm\\node\u modules\\node gyp\\bin\\node gyp.js”“build”“--fallback to build”“--library=static\u library”“--module=D:\\Projects\\Marvelocity\\node\u modules\\grpc\\src\\node\\extension\u binary\\node-v83-win32-x64-unknown\\grpc\u node”“--module“--module_path=D:\\Projects\\Marvelocity\\node_modules\\grpc\\src\\node\\extension\u binary\\node-v83-win32-x64-unknown”“--napi_version=6”“--node_abi_napi=napi”“--napi_build_version=0”“--node_napi_label=node-v83”
gyp ERR!cwd:\Projects\Marvelocity\node\u modules\grpc
GypErr!节点-v14.3.0
gyp ERR!节点gyp-v5.1.0
哎呀!不行
节点预gyp错误!生成错误
节点前gyp错误!堆栈错误:未能执行'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node\U modules\npm\node\U modules\node gyp\bin\node-gyp.js build--回退到构建--库=静态库--模块=D:\Projects\Marvelocity\node\modules\grpc\src\node\extension\binary\node\node-v83-win32-x64-unknown\grpc\node.node--模块名称=grpc_node--module_path=D:\Projects\Marvelocity\node_modules\grpc\src\node\extension\u binary\node-v83-win32-x64-unknown--napi_version=6--node_abi_napi=napi--napi_build_version=0--node_napi_label=node-v83'(1)
node pre-gyp ERR!在ChildProcess上堆栈。(D:\Projects\Marvelocity\node\u modules\grpc\node\u modules\node pre-gyp\lib\util\compile.js:83:29)
ChildProcess.emit(events.js:315:20)上的节点pre-gyp ERR!堆栈
maybeClose的节点预gyp ERR!堆栈(internal/child_process.js:1051:16)
node pre-gyp ERR!在Process.ChildProcess.\u handle.onexit(internal/child\u Process.js:287:5)处堆栈
节点预gyp错误!系统Windows\u NT 10.0.18362
节点前gyp ERR!命令“C:\\Program Files\\nodejs\\node.exe”“D:\\Projects\\Marvelocity\\node\u modules\\grpc\\node\u modules\\node前gyp\\bin\\node前gyp”“install”“--回退到构建”“--库=静态库”
节点前gyp错误!cwd:\Projects\Marvelocity\node\u modules\grpc
节点前gyp错误!节点-v14.3.0
节点预gyp错误!节点预gyp-v v0.12.0
节点预gyp错误!不正常
无法执行'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node\U modules\npm\node\U modules\node gyp\bin\node-gyp.js build--fallback to build--library=static\U library--module=D:\Projects\Marvelocity\node\U modules\grpc\src\node\extension\binary\node-v83-win32-x64-unknown\grpc\U node.node----------------模块名=grpc\node--模块路径=D:\Projects\Marvelocity\node\U modules\grpc\src\node\extension\U binary\node-v83-win32-x64-unknown--napi\U version=6--node\U abi\U napi=napi--napi\U build\U version=0--node\U napi\U label=node-v83'(1)
npm警告codelyzer@5.2.1需要tslint@^5.0.0的对等机,但未安装任何对等机。您必须自己安装对等机依赖项。

npm警告@角度/fire@5.1.1需要一个@angular/common@>=6.0.0=6.0.0=6.0.0=6.0.0.0的对等节点。安装日志中有节点版本
14.3.0
。节点
14.x.x
节点模块版本
83
。如果我们查看
grpc
的响应,我们可以看到没有预构建的l用于节点模块版本
83
的库。最新支持的节点模块版本是
51
,这意味着节点版本
7.x.x
。由于它非常旧,本地构建仍然是唯一的选项。我尝试像您一样在本地构建它,但不幸的是,我没有成功地使用节点LTS版本(
12.x.x
)。在安装日志中安装了节点版本
14.3.0
。节点
14.x.x
具有
node\u模块版本
83
。如果我们查看
grpc
的响应,我们可以看到,没有针对节点模块版本
83
的预构建库。最新支持的节点模块版本是
51
这意味着节点版本
7.x.x
。由于它非常旧,本地构建仍然是唯一的选择。我尝试像您一样在本地构建它,但不幸的是,我没有成功地使用节点LTS版本(
12.x.x
)。