M1 Mac上的Firebase损坏 [英] Firebase broken on M1 Mac

查看:105
本文介绍了M1 Mac上的Firebase损坏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一台新的MacBook Air M1.Firebase一直在努力,直到上周我将firebase-tools从9.7.0升级到9.8.0为止.升级后,每次尝试运行任何"firebase"应用程序时,都会出现此错误.声明.

I have a new MacBook Air M1. Firebase had been working up until I did an upgrade of firebase-tools from 9.7.0 to 9.8.0 last week. After the upgrade, I get this error every time I try to run any "firebase " statement.

对于结束原始问题的人员,此问题没有直接涉及的源代码.要复制此问题,您必须拥有M1 Mac并使用Firebase.

There is no source code directly involved in this question, for the person who closed the original question. To replicate this issue you'd have to have an M1 mac and be using firebase.

如何解决此问题?

(请注意其他有此问题的人,答案由@RandomDude在下面的注释中提供:只需将firebase-tools降级到9.7.0)

(Note for others who have this problem, the answer was provided in comments by @RandomDude below: just downgrade firebase-tools to 9.7.0)

steve@steves-air functions % firebase
dyld: lazy symbol binding failed: Symbol not found: __Z18sse42_is_availablev
  Referenced from: /opt/homebrew/lib/node_modules/firebase-tools/node_modules/sse4_crc32/build/Release/crc32c.node
  Expected in: flat namespace

dyld: Symbol not found: __Z18sse42_is_availablev
  Referenced from: /opt/homebrew/lib/node_modules/firebase-tools/node_modules/sse4_crc32/build/Release/crc32c.node
  Expected in: flat namespace

zsh: abort      firebase

推荐答案

2021年4月7日更新

更新为 firebase-tools@9.9.0 可以解决此问题.

$ npm install -g firebase-tools
$ firebase --version
9.9.0


临时解决方案

RandomDude 在上面的评论中提到,降级为 9.7.0 它对我有用.


Temporal Solution

As it mentioned in the above comment by RandomDude, downgrading to 9.7.0 made it work for me.

$ firebase --version

# This will give you the same error.
# So, look at the directory where firebase-tools are installed.

$ cat /opt/homebrew/lib/node_modules/firebase-tools/package.json
{
  "name": "firebase-tools",
  "version": "9.8.0",
--- snip ---

重新安装firebase-tools

Reinstall firebase-tools

$ npm uninstall -g firebase-tools
$ npm install -g firebase-tools@9.7.0
$ firebase --version
9.7.0

这是我的临时解决方案.感谢 RandomDude .

This is a temporal solution for me. Thanks to RandomDude.

这篇关于M1 Mac上的Firebase损坏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆