无法安装nodered-contrib-firebase-storage

我无法安装名为“ node-red-contrib-firebase-storage”的Node-RED模块。

到目前为止,我已经在这些机器上尝试过

  • 带有Raspbian Buster的Raspberry PI 3B
  • 具有Ubuntu Core的Raspberry PI 3B
  • 带有Ubuntu 19.04的笔记本电脑

通过Node-Red菜单“ Manage Palette ...”和命令行:

npm install node-red-contrib-firebase-storage

在上述所有组合中,安装失败,并显示以下日志。

我对根本原因的主要理解(也在此处阅读:https://github.com/googleapis/google-cloud-node/issues/2830)是该软件包正在尝试的依赖项 grpc 的版本 1.10.1 安装。

实际上,如果我执行npm install grpc,则将安装其他版本(1.24.2)的grpc软件包,并且没有错误。

有人成功安装了此软件包吗? 谁能帮助我了解如何安装此Node-RED模块?

这是日志:

2019-11-25T18:34:07.666Z npm install --no-audit --no-update-notifier --save --save-prefix="~" --production node-red-contrib-firebase-storage@1.1.0
2019-11-25T18:34:30.776Z [err] npm
2019-11-25T18:34:30.776Z [err]  WARN deprecated core-js@2.5.5: core-js@<3.0 is no longer maintained and not recommended for usage due to the number of issues. Please,upgrade your dependencies to the actual version of core-js@3.
2019-11-25T18:34:48.500Z [out] 
2019-11-25T18:34:48.500Z [out] > grpc@1.10.1 install /root/snap/node-red/525/node_modules/grpc
2019-11-25T18:34:48.500Z [out] > node-pre-gyp install --fallback-to-build --library=static_library
2019-11-25T18:34:48.500Z [out] 
2019-11-25T18:35:02.084Z [err] node-pre-gyp
2019-11-25T18:35:02.084Z [err]  ERR! 
2019-11-25T18:35:02.085Z [err] Tried to download(403): https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.10.1/node-v64-linux-arm-glibc.tar.gz 
2019-11-25T18:35:02.086Z [err] node-pre-gyp
2019-11-25T18:35:02.086Z [err]  ERR! 
2019-11-25T18:35:02.086Z [err] Pre-built binaries not found for grpc@1.10.1 and node@10.16.3 (node-v64 ABI,glibc) (falling back to source compile with node-gyp) 
2019-11-25T18:35:02.132Z [err] node-pre-gyp
2019-11-25T18:35:02.132Z [err]  ERR! Pre-built binaries not installable for grpc@1.10.1 and node@10.16.3 (node-v64 ABI,glibc) (falling back to source compile with node-gyp) 
2019-11-25T18:35:02.133Z [err] node-pre-gyp ERR!
2019-11-25T18:35:02.133Z [err]  Hit error Connection closed while downloading tarball file
2019-11-25T18:35:02.133Z [err]  
2019-11-25T18:35:05.452Z [err] gyp
2019-11-25T18:35:05.453Z [err]  WARN 
2019-11-25T18:35:05.454Z [err] install got an error,rolling back install
2019-11-25T18:35:05.458Z [err] gyp
2019-11-25T18:35:05.459Z [err]  
2019-11-25T18:35:05.459Z [err] WARN install got an error,rolling back install
2019-11-25T18:35:05.481Z [err] gyp
2019-11-25T18:35:05.481Z [err]  ERR! 
2019-11-25T18:35:05.482Z [err] configure error 
2019-11-25T18:35:05.482Z [err] gyp
2019-11-25T18:35:05.482Z [err]  ERR! 
2019-11-25T18:35:05.483Z [err] stack Error: EPERM: operation not permitted,chown '/root/snap/node-red/525/.node-gyp/10.16.3'
2019-11-25T18:35:05.484Z [err] gyp
2019-11-25T18:35:05.484Z [err]  ERR! System
2019-11-25T18:35:05.484Z [err]  Linux 4.15.0-1049-raspi2
2019-11-25T18:35:05.485Z [err] gyp
2019-11-25T18:35:05.485Z [err]  ERR! command
2019-11-25T18:35:05.486Z [err]  "/snap/node-red/525/bin/node" "/snap/node-red/525/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--library=static_library" "--module=/root/snap/node-red/525/node_modules/grpc/src/node/extension_binary/node-v64-linux-arm-glibc/grpc_node.node" "--module_name=grpc_node" "--module_path=/root/snap/node-red/525/node_modules/grpc/src/node/extension_binary/node-v64-linux-arm-glibc"
2019-11-25T18:35:05.486Z [err] gyp
2019-11-25T18:35:05.486Z [err]  ERR! 
2019-11-25T18:35:05.486Z [err] cwd /root/snap/node-red/525/node_modules/grpc
2019-11-25T18:35:05.486Z [err] gyp
2019-11-25T18:35:05.487Z [err]  ERR!
2019-11-25T18:35:05.487Z [err]  node -v v10.16.3
2019-11-25T18:35:05.487Z [err] gyp
2019-11-25T18:35:05.487Z [err]  ERR! node-gyp -v
2019-11-25T18:35:05.487Z [err]  v3.8.0
2019-11-25T18:35:05.487Z [err] gyp
2019-11-25T18:35:05.488Z [err]  ERR! 
2019-11-25T18:35:05.488Z [err] not ok 
2019-11-25T18:35:05.492Z [err] gyp
2019-11-25T18:35:05.492Z [err]  ERR!
2019-11-25T18:35:05.493Z [err]  configure error
2019-11-25T18:35:05.493Z [err]  
2019-11-25T18:35:05.494Z [err] gyp
2019-11-25T18:35:05.494Z [err]  ERR! stack
2019-11-25T18:35:05.495Z [err]  Error: EPERM: operation not permitted,chown '/root/snap/node-red/525/.node-gyp/10.16.3'
2019-11-25T18:35:05.496Z [err] gyp
2019-11-25T18:35:05.496Z [err]  ERR! 
2019-11-25T18:35:05.496Z [err] System Linux 4.15.0-1049-raspi2
2019-11-25T18:35:05.497Z [err] gyp
2019-11-25T18:35:05.497Z [err]  ERR! 
2019-11-25T18:35:05.497Z [err] command "/snap/node-red/525/bin/node" "/snap/node-red/525/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--library=static_library" "--module=/root/snap/node-red/525/node_modules/grpc/src/node/extension_binary/node-v64-linux-arm-glibc/grpc_node.node" "--module_name=grpc_node" "--module_path=/root/snap/node-red/525/node_modules/grpc/src/node/extension_binary/node-v64-linux-arm-glibc"
2019-11-25T18:35:05.498Z [err] gyp
2019-11-25T18:35:05.498Z [err]  ERR! 
2019-11-25T18:35:05.498Z [err] cwd /root/snap/node-red/525/node_modules/grpc
2019-11-25T18:35:05.498Z [err] gyp
2019-11-25T18:35:05.498Z [err]  ERR!
2019-11-25T18:35:05.499Z [err]  
2019-11-25T18:35:05.499Z [err] node -v
2019-11-25T18:35:05.499Z [err]  v10.16.3
2019-11-25T18:35:05.499Z [err] gyp
2019-11-25T18:35:05.499Z [err]  ERR!
2019-11-25T18:35:05.499Z [err]  
2019-11-25T18:35:05.500Z [err] node-gyp -v
2019-11-25T18:35:05.500Z [err]  v3.8.0
2019-11-25T18:35:05.500Z [err] gyp
2019-11-25T18:35:05.501Z [err]  
2019-11-25T18:35:05.501Z [err] ERR! 
2019-11-25T18:35:05.501Z [err] not ok 
2019-11-25T18:35:05.502Z [err] node-pre-gyp
2019-11-25T18:35:05.506Z [err]  ERR! build error 
2019-11-25T18:35:05.506Z [err] node-pre-gyp ERR! stack Error: Failed to execute '/snap/node-red/525/bin/node /snap/node-red/525/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --library=static_library --module=/root/snap/node-red/525/node_modules/grpc/src/node/extension_binary/node-v64-linux-arm-glibc/grpc_node.node --module_name=grpc_node --module_path=/root/snap/node-red/525/node_modules/grpc/src/node/extension_binary/node-v64-linux-arm-glibc' (1)
2019-11-25T18:35:05.506Z [err] node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/root/snap/node-red/525/node_modules/grpc/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
2019-11-25T18:35:05.506Z [err] node-pre-gyp
2019-11-25T18:35:05.506Z [err]  ERR! stack     at ChildProcess.emit (events.js:198:13)
2019-11-25T18:35:05.506Z [err] node-pre-gyp ERR!
2019-11-25T18:35:05.507Z [err]  stack     at maybeclose (internal/child_process.js:982:16)
2019-11-25T18:35:05.507Z [err] node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
2019-11-25T18:35:05.510Z [err] node-pre-gyp
2019-11-25T18:35:05.511Z [err]  ERR! System Linux 4.15.0-1049-raspi2
2019-11-25T18:35:05.511Z [err] node-pre-gyp ERR! command "/snap/node-red/525/bin/node" "/root/snap/node-red/525/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
2019-11-25T18:35:05.511Z [err] node-pre-gyp ERR!
2019-11-25T18:35:05.512Z [err]  cwd /root/snap/node-red/525/node_modules/grpc
2019-11-25T18:35:05.512Z [err] node-pre-gyp ERR! node -v v10.16.3
2019-11-25T18:35:05.513Z [err] node-pre-gyp ERR! node-pre-gyp -v v0.7.0
2019-11-25T18:35:05.513Z [err] node-pre-gyp ERR! 
2019-11-25T18:35:05.514Z [err] not ok 
2019-11-25T18:35:05.515Z [out] Failed to execute '/snap/node-red/525/bin/node /snap/node-red/525/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --library=static_library --module=/root/snap/node-red/525/node_modules/grpc/src/node/extension_binary/node-v64-linux-arm-glibc/grpc_node.node --module_name=grpc_node --module_path=/root/snap/node-red/525/node_modules/grpc/src/node/extension_binary/node-v64-linux-arm-glibc' (1)
2019-11-25T18:35:07.757Z [err] npm
2019-11-25T18:35:07.757Z [err]  ERR! code ELIFECYCLE
2019-11-25T18:35:07.758Z [err] npm
2019-11-25T18:35:07.758Z [err]  ERR! errno
2019-11-25T18:35:07.758Z [err]  1
2019-11-25T18:35:07.762Z [err] npm
2019-11-25T18:35:07.763Z [err]  ERR! grpc@1.10.1 install: `node-pre-gyp install --fallback-to-build --library=static_library`
2019-11-25T18:35:07.763Z [err] npm ERR! Exit status 1
2019-11-25T18:35:07.763Z [err] npm
2019-11-25T18:35:07.763Z [err]  ERR! 
2019-11-25T18:35:07.764Z [err] npm ERR!
2019-11-25T18:35:07.764Z [err]  Failed at the grpc@1.10.1 install script.
2019-11-25T18:35:07.764Z [err] npm
2019-11-25T18:35:07.764Z [err]  ERR!
2019-11-25T18:35:07.764Z [err]  This is probably not a problem with npm. There is likely additional logging output above.
2019-11-25T18:35:07.885Z [err] 
2019-11-25T18:35:07.885Z [err] npm ERR! A complete log of this run can be found in:
2019-11-25T18:35:07.886Z [err] npm ERR!
2019-11-25T18:35:07.886Z [err]      /root/snap/node-red/525/.npm/_logs/2019-11-25T18_35_07_828Z-debug.log
2019-11-25T18:35:07.930Z rc=1
zhaopingg 回答:无法安装nodered-contrib-firebase-storage

问题出在节点10上(grpc 1.10不支持节点10)-nodered-contrib-firebase-storage软件包的1.1.0版本使用firebase@4.13.1-需要grpc 1.10

您可以使用此软件包的1.2.0版本-它具有Firebase依赖版本。

其他解决方法是使用旧版本的Node。

本文链接:https://www.f2er.com/3033931.html

大家都在问