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
firebase工具无法安装,为什么?_Firebase_Firebase Tools - Fatal编程技术网

firebase工具无法安装,为什么?

firebase工具无法安装,为什么?,firebase,firebase-tools,Firebase,Firebase Tools,我无法在我的mac计算机上安装firebase工具。 firebase工具错误,安装后,firebase初始化错误 我搜索了这个问题,但找不到解决办法 我重新安装了node、firebase、node pre-gyp等 > sudo npm install -g firebase-tools npm WARN deprecated node-uuid@1.4.8: Use uuid module instead /usr/local/bin/firebase -> /usr/lo

我无法在我的mac计算机上安装firebase工具。 firebase工具错误,安装后,firebase初始化错误 我搜索了这个问题,但找不到解决办法

我重新安装了node、firebase、node pre-gyp等

> sudo npm install -g firebase-tools 

npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
/usr/local/bin/firebase -> /usr/local/lib/node_modules/firebase-tools/bin/firebase

> node-zopfli@1.4.0 install /usr/local/lib/node_modules/firebase-tools/node_modules/node-zopfli
> node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(undefined): https://node-zopfli.s3.amazonaws.com/Release/zopfli-v1.4.0-node-v57-darwin-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for node-zopfli@1.4.0 and node@8.4.0 (node-v57 ABI) (falling back to source compile with node-gyp) 
node-pre-gyp ERR! Tried to download(403): https://node-zopfli.s3.amazonaws.com/Release/zopfli-v1.4.0-node-v57-darwin-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for node-zopfli@1.4.0 and node@8.4.0 (node-v57 ABI) (falling back to source compile with node-gyp) 
gyp ERR! configure error 
gyp ERR! stack Error: Command failed: /Users/Huks/.pyenv/shims/python2 -c import platform; print(platform.python_version());
gyp ERR! stack pyenv: python2: command not found
gyp ERR! stack 
gyp ERR! stack The `python2' command exists in these Python versions:
gyp ERR! stack   2.7.13
gyp ERR! stack   2.7.9
gyp ERR! stack 
gyp ERR! stack 
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:270:12)
gyp ERR! stack     at emitTwo (events.js:125:13)
gyp ERR! stack     at ChildProcess.emit (events.js:213:7)
gyp ERR! stack     at maybeClose (internal/child_process.js:927:16)
gyp ERR! stack     at Socket.stream.socket.on (internal/child_process.js:348:11)
gyp ERR! stack     at emitOne (events.js:115:13)
gyp ERR! stack     at Socket.emit (events.js:210:7)
gyp ERR! stack     at Pipe._handle.close [as _onclose] (net.js:545:12)
gyp ERR! System Darwin 16.7.0
gyp ERR! command "/usr/local/Cellar/node/8.4.0/bin/node" "/usr/local/lib/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/usr/local/lib/node_modules/firebase-tools/node_modules/node-zopfli/lib/binding/node-v57-darwin-x64/zopfli.node" "--module_name=zopfli" "--module_path=/usr/local/lib/node_modules/firebase-tools/node_modules/node-zopfli/lib/binding/node-v57-darwin-x64"
gyp ERR! cwd /usr/local/lib/node_modules/firebase-tools/node_modules/node-zopfli
gyp ERR! node -v v8.4.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/Cellar/node/8.4.0/bin/node /usr/local/lib/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/usr/local/lib/node_modules/firebase-tools/node_modules/node-zopfli/lib/binding/node-v57-darwin-x64/zopfli.node --module_name=zopfli --module_path=/usr/local/lib/node_modules/firebase-tools/node_modules/node-zopfli/lib/binding/node-v57-darwin-x64' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/firebase-tools/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:125:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:213:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:927:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
node-pre-gyp ERR! System Darwin 16.7.0
node-pre-gyp ERR! command "/usr/local/Cellar/node/8.4.0/bin/node" "/usr/local/lib/node_modules/firebase-tools/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /usr/local/lib/node_modules/firebase-tools/node_modules/node-zopfli
node-pre-gyp ERR! node -v v8.4.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.36
node-pre-gyp ERR! not ok 
Failed to execute '/usr/local/Cellar/node/8.4.0/bin/node /usr/local/lib/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/usr/local/lib/node_modules/firebase-tools/node_modules/node-zopfli/lib/binding/node-v57-darwin-x64/zopfli.node --module_name=zopfli --module_path=/usr/local/lib/node_modules/firebase-tools/node_modules/node-zopfli/lib/binding/node-v57-darwin-x64' (1)

> grpc@1.4.1 install /usr/local/lib/node_modules/firebase-tools/node_modules/grpc
> node-pre-gyp install --fallback-to-build --library=static_library

gyp ERR! configure error 
gyp ERR! stack Error: Command failed: /Users/Huks/.pyenv/shims/python2 -c import platform; print(platform.python_version());
gyp ERR! stack pyenv: python2: command not found
gyp ERR! stack 
gyp ERR! stack The `python2' command exists in these Python versions:
gyp ERR! stack   2.7.13
gyp ERR! stack   2.7.9
gyp ERR! stack 
gyp ERR! stack 
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:270:12)
gyp ERR! stack     at emitTwo (events.js:125:13)
gyp ERR! stack     at ChildProcess.emit (events.js:213:7)
gyp ERR! stack     at maybeClose (internal/child_process.js:927:16)
gyp ERR! stack     at Socket.stream.socket.on (internal/child_process.js:348:11)
gyp ERR! stack     at emitOne (events.js:115:13)
gyp ERR! stack     at Socket.emit (events.js:210:7)
gyp ERR! stack     at Pipe._handle.close [as _onclose] (net.js:545:12)
gyp ERR! System Darwin 16.7.0
gyp ERR! command "/usr/local/Cellar/node/8.4.0/bin/node" "/usr/local/lib/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/usr/local/lib/node_modules/firebase-tools/node_modules/node-zopfli/lib/binding/node-v57-darwin-x64/zopfli.node" "--module_name=zopfli" "--module_path=/usr/local/lib/node_modules/firebase-tools/node_modules/node-zopfli/lib/binding/node-v57-darwin-x64"
gyp ERR! cwd /usr/local/lib/node_modules/firebase-tools/node_modules/node-zopfli
gyp ERR! node -v v8.4.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok 
node-pre-gyp ERR! Tried to download(undefined): https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.4.1/node-v57-darwin-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for grpc@1.4.1 and node@8.4.0 (node-v57 ABI) (falling back to source compile with node-gyp) 
gyp ERR! configure error 
gyp ERR! stack Error: Command failed: /Users/Huks/.pyenv/shims/python2 -c import platform; print(platform.python_version());
gyp ERR! stack pyenv: python2: command not found
gyp ERR! stack 
gyp ERR! stack The `python2' command exists in these Python versions:
gyp ERR! stack   2.7.13
gyp ERR! stack   2.7.9
gyp ERR! stack 
gyp ERR! stack 
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:270:12)
gyp ERR! stack     at emitTwo (events.js:125:13)
gyp ERR! stack     at ChildProcess.emit (events.js:213:7)
gyp ERR! stack     at maybeClose (internal/child_process.js:927:16)
gyp ERR! stack     at Socket.stream.socket.on (internal/child_process.js:348:11)
gyp ERR! stack     at emitOne (events.js:115:13)
gyp ERR! stack     at Socket.emit (events.js:210:7)
gyp ERR! stack     at Pipe._handle.close [as _onclose] (net.js:545:12)
gyp ERR! System Darwin 16.7.0
gyp ERR! command "/usr/local/Cellar/node/8.4.0/bin/node" "/usr/local/lib/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--library=static_library" "--module=/usr/local/lib/node_modules/firebase-tools/node_modules/grpc/src/node/extension_binary/grpc_node.node" "--module_name=grpc_node" "--module_path=/usr/local/lib/node_modules/firebase-tools/node_modules/grpc/src/node/extension_binary"
gyp ERR! cwd /usr/local/lib/node_modules/firebase-tools/node_modules/grpc
gyp ERR! node -v v8.4.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/Cellar/node/8.4.0/bin/node /usr/local/lib/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --library=static_library --module=/usr/local/lib/node_modules/firebase-tools/node_modules/grpc/src/node/extension_binary/grpc_node.node --module_name=grpc_node --module_path=/usr/local/lib/node_modules/firebase-tools/node_modules/grpc/src/node/extension_binary' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/firebase-tools/node_modules/grpc/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:125:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:213:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:927:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
node-pre-gyp ERR! System Darwin 16.7.0
node-pre-gyp ERR! command "/usr/local/Cellar/node/8.4.0/bin/node" "/usr/local/lib/node_modules/firebase-tools/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
node-pre-gyp ERR! cwd /usr/local/lib/node_modules/firebase-tools/node_modules/grpc
node-pre-gyp ERR! node -v v8.4.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.36
node-pre-gyp ERR! not ok 
Failed to execute '/usr/local/Cellar/node/8.4.0/bin/node /usr/local/lib/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --library=static_library --module=/usr/local/lib/node_modules/firebase-tools/node_modules/grpc/src/node/extension_binary/grpc_node.node --module_name=grpc_node --module_path=/usr/local/lib/node_modules/firebase-tools/node_modules/grpc/src/node/extension_binary' (1)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-zopfli@1.4.0 (node_modules/firebase-tools/node_modules/node-zopfli):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-zopfli@1.4.0 install: `node-pre-gyp install --fallback-to-build`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: grpc@1.4.1 (node_modules/firebase-tools/node_modules/grpc):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: grpc@1.4.1 install: `node-pre-gyp install --fallback-to-build --library=static_library`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
>sudo npm安装-g firebase工具
npm警告不推荐使用的节点-uuid@1.4.8:改用uuid模块
/usr/local/bin/firebase->/usr/local/lib/node_模块/firebase工具/bin/firebase
>节点-zopfli@1.4.0安装/usr/local/lib/node_模块/firebase工具/node_模块/node zopfli
>节点预gyp安装--回退到构建
节点前gyp错误!试图下载(未定义):https://node-zopfli.s3.amazonaws.com/Release/zopfli-v1.4.0-node-v57-darwin-x64.tar.gz 
节点前gyp错误!未找到节点的预构建二进制文件-zopfli@1.4.0及node@8.4.0(node-v57 ABI)(使用节点gyp返回到源代码编译)
节点前gyp错误!已尝试下载(403):https://node-zopfli.s3.amazonaws.com/Release/zopfli-v1.4.0-node-v57-darwin-x64.tar.gz 
节点前gyp错误!未找到节点的预构建二进制文件-zopfli@1.4.0及node@8.4.0(node-v57 ABI)(使用节点gyp返回到源代码编译)
哎呀!配置错误
哎呀!堆栈错误:命令失败:/Users/Huks/.pyenv/shimmes/python2-c导入平台;打印(platform.python_version());
哎呀!堆栈pyenv:python2:未找到命令
哎呀!堆栈
哎呀!stack这些Python版本中存在“python2”命令:
哎呀!堆栈2.7.13
哎呀!堆栈2.7.9
哎呀!堆栈
哎呀!堆栈
哎呀!在ChildProcess.exithandler处堆栈(child_process.js:270:12)
哎呀!在emitTwo处堆栈(events.js:125:13)
哎呀!ChildProcess.emit上的堆栈(events.js:213:7)
哎呀!maybeClose的堆栈(内部/child_process.js:927:16)
哎呀!堆栈位于Socket.stream.Socket.on(internal/child_process.js:348:11)
哎呀!emitOne上的堆栈(events.js:115:13)
哎呀!堆栈位于Socket.emit(events.js:210:7)
哎呀!在管道处堆叠。_handle.close[as _onclose](net.js:545:12)
哎呀!达尔文16.7.0系统
哎呀!命令“/usr/local/cillar/node/8.4.0/bin/node”“/usr/local/lib/node_modules/node gyp/bin/node gyp.js”“配置”“--fallback to build”“--module=/usr/local/lib/node_modules/firebase tools/node_modules/node zopfli/lib/binding/node-v57-darwin-x64/zopfli.node”“--module_name=zopfli”“--module_path=/usr/local/lib/node_modules/firebase tools/node_modules/node zopfli/lib/binding/node-v57-darwin-x64”
gyp ERR!cwd/usr/local/lib/node_modules/firebase tools/node_modules/node zopfli
gyp ERR!节点-v8.4.0
gyp ERR!节点gyp-v3.6.2
哎呀!不行
节点预gyp错误!生成错误
node pre-gyp ERR!堆栈错误:未能执行“/usr/local/cillar/node/8.4.0/bin/node/local/lib/node_modules/node-gyp/bin/node-gyp.js configure--fallback to build--module=/usr/local/lib/node_modules/firebase tools/node-zopfli/lib/binding/node-v57-darwin-x64/zopfli.node--module_name=zopfli---module=zopfli---module路径=/usr/local/lib/node模块/firebase工具/node_模块/node zopfli/lib/binding/node-v57-darwin-x64'(1)
node pre-gyp ERR!在ChildProcess上堆栈。(/usr/local/lib/node_modules/firebase tools/node_modules/node pre-gyp/lib/util/compile.js:83:29)
emitTwo上的节点pre-gyp ERR!堆栈(events.js:125:13)
ChildProcess.emit(events.js:213:7)处的节点pre-gyp ERR!stack
maybeClose的节点前gyp ERR!堆栈(internal/child_process.js:927:16)
node pre-gyp ERR!在Process.ChildProcess.\u handle.onexit(internal/child\u Process.js:211:5)处堆栈
节点预gyp ERR!系统达尔文16.7.0
node pre-gyp ERR!command“/usr/local/cillar/node/8.4.0/bin/node”“/usr/local/lib/node_modules/firebase tools/node_modules/.bin/node pre-gyp”“install”“--回退到构建”
node pre-gyp ERR!cwd/usr/local/lib/node_modules/firebase tools/node_modules/node zopfli
节点前gyp错误!节点-v v8.4.0
节点预gyp错误!节点预gyp-v v0.6.36
节点预gyp错误!不正常
未能执行“/usr/local/cillar/node/8.4.0/bin/node/node/lib/node_modules/node-gyp/bin/node-gyp.js configure--fallback to build--module=/usr/local/lib/node_modules/firebase tools/node_modules/node-zopfli/lib/binding/node-v57-darwin-x64/zopfli.node--module-module name=zopfli--=zopfli--module-module=/usr/local/lib/node/node/node_-modulees/node zopfli/lib/binding/node-v57-darwin-x64'(1)
> grpc@1.4.1安装/usr/local/lib/node_模块/firebase工具/node_模块/grpc
>节点预gyp安装--回退到构建--库=静态\u库
gyp错误!配置错误
gyp ERR!堆栈错误:命令失败:/Users/Huks/.pyenv/shimmes/python2-c导入平台;打印(platform.python_version());
gyp ERR!未找到堆栈pyenv:python2:命令
gyp ERR!堆叠
gyp ERR!stack这些Python版本中存在“python2”命令:
gyp ERR!堆栈2.7.13
gyp ERR!堆栈2.7.9
gyp ERR!堆叠
gyp ERR!堆叠
gyp ERR!在ChildProcess.exithandler处堆栈(child_process.js:270:12)
gyp ERR!在emitTwo处堆叠(events.js:125:13)
ChildProcess.emit(events.js:213:7)上的gyp ERR!堆栈
gyp ERR!堆栈位于maybeClose(internal/child_process.js:927:16)
gyp ERR!堆栈位于Socket.stream.Socket.on(internal/child_process.js:348:11)
gyp ERR!emitOne上的堆栈(events.js:115:13)
gyp ERR!Socket.emit(events.js:210:7)处的堆栈
gyp ERR!在管道处堆叠。_handle.close[as _onclose](net.js:545:12)
gyp ERR!系统达尔文16.7.0
gyp ERR!command“/usr/local/cillar/node/8.4.0/bin/node”“/usr/local/lib/nodeêmodules/node gyp/bin/node gyp.js”“configure”“--fallback to build”“--module=/usr/local/lib/nodeêmodules/node zopfli/lib/binding/node-v57-darwin-x64/zopfli.node”“--moduleêêname=zopfli”--module_path=/usr/local/lib/node_modules/firebase tools/node_modules/node zopfli/lib/binding/node-v57-darwin-x64“
gyp ERR!cwd/usr/local/lib/node_modules/firebase tools/node_modules/node zopfli
gyp ERR!节点-v8.4.0
gyp ERR!节点gyp-v3.6.2
哎呀!不行
节点前gyp错误!尝试下载(未定义):https://storage.googleapis.com/