Firebase broken on M1 Mac

Viewed 3241

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.

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.

How can I fix this problem?

(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
1 Answers

Update on April 7, 2021

Updating to firebase-tools@9.9.0 fixed the issue.

$ npm install -g firebase-tools
$ firebase --version
9.9.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 ---

Reinstall firebase-tools

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

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

Related