gpt4 book ai didi

windows - 无法在 Windows 中安装 firebase 工具

转载 作者:可可西里 更新时间:2023-11-01 09:22:50 25 4
gpt4 key购买 nike

您好,我无法使用管理员模式通过命令提示符安装 firebase 工具,我收到以下错误:

F:\rnd\MyChat>npm install  firebase

> grpc@1.8.4 install F:\rnd\MyChat\node_modules\grpc
> node-pre-gyp install --fallback-to-build --library=static_library

node-pre-gyp ERR! Tried to download(undefined): https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.8.4/node-v57-win32-x64-unknown.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for grpc@1.8.4 and node@8.9.3 (node-v57 ABI, unknown) (falling back to source compile with node-gyp)
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (C:\Users\ani\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\configure.js:483:19)
gyp ERR! stack at PythonFinder.<anonymous>
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! grpc@1.8.4 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.8.4 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

最佳答案

您正在尝试安装 firebase javascript 库而不是 firebase-tools firebase 工具的节点模块是 firebase-tools 和 firebase 3.16版本以及本地文件夹中的版本 npm install node-gyp

你应该跑

npm install -g firebase-tools

关于windows - 无法在 Windows 中安装 firebase 工具,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48355311/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com