安装firebase-admin时出现问题(第10窗口是Linux平台)

时间:2018-06-25 18:08:24

标签: node.js firebase npm firebase-realtime-database firebase-admin

我正在尝试使用firebase cloudfunctions,我的问题是当我准备工作环境时,请按照指示的步骤操作,关于node.js版本6.14.0,我尝试对firebase-tools @ Latest和firebase-admin @ Latest,执行此操作时,我得到一个错误,我将其记录下来,然后我想评论一下我是在Linux环境下使用Windows 10之类的ubunto实现的 更改节点的版本和firebase-admin重复相同的错误 尝试安装最新版本的node-pre-gyp并重复相同的错误

这是我尝试同时安装firebase-admin和firebase-tools时的日志

有人可以帮助我

日志

npm -g install firebase-tools@latest firebase-admin@latest 
/home/armando/.nvm/versions/node/v6.14.0/bin/firebase -> /home/armando/.nvm/versions/node/v6.14.0/lib/node_modules/firebase-tools/bin/firebase

> grpc@1.12.4 install /home/armando/.nvm/versions/node/v6.14.0/lib/node_modules/firebase-admin/node_modules/grpc
> node-pre-gyp install --fallback-to-build --library=static_library

node-pre-gyp ERR! Completion callback never invoked! 
node-pre-gyp ERR! System Linux 4.15.0-23-generic
node-pre-gyp ERR! command "/home/armando/.nvm/versions/node/v6.14.0/bin/node" "/home/armando/.nvm/versions/node/v6.14.0/lib/node_modules/firebase-admin/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
node-pre-gyp ERR! cwd /home/armando/.nvm/versions/node/v6.14.0/lib/node_modules/firebase-admin/node_modules/grpc
node-pre-gyp ERR! node -v v6.14.0
node-pre-gyp ERR! node-pre-gyp -v v0.10.0
node-pre-gyp ERR! This is a bug in `node-pre-gyp`.
node-pre-gyp ERR! Try to update node-pre-gyp and file an issue if it does not help:
node-pre-gyp ERR!     <https://github.com/mapbox/node-pre-gyp/issues>
/home/armando/.nvm/versions/node/v6.14.0/lib
└── firebase-tools@3.19.0 

npm ERR! Linux 4.15.0-23-generic
npm ERR! argv "/home/armando/.nvm/versions/node/v6.14.0/bin/node" "/home/armando/.nvm/versions/node/v6.14.0/bin/npm" "-g" "install" "firebase-tools@latest" "firebase-admin@latest"
npm ERR! node v6.14.0
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! grpc@1.12.4 install: `node-pre-gyp install --fallback-to-build --library=static_library`
npm ERR! Exit status 6
npm ERR! 
npm ERR! Failed at the grpc@1.12.4 install script 'node-pre-gyp install --fallback-to-build --library=static_library'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the grpc package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build --library=static_library
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs grpc
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls grpc
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/armando/npm-debug.log

0 个答案:

没有答案