Cannot run azure functions on M1

I own an M1 chip and unable to run azure functions locally.

ENV Info:

OS: macOS Big Sur (11.4)Node: v14.17.0, v12.18.4 (nvm),  azure-cli: 2.25.0core: 2.25.0telemetry: 1.0.6azure-functions-core-tools: azure-functions-core-tools@3, Homebrew: 3.1.12

Error Information:

Original error: Cannot find module '/opt/homebrew/Cellar/azure-functions-core-tools@3/3.0.3477/workers/node/grpc/src/node/extension_binary/node-v83-darwin-arm64-unknown/grpc_node.node'
Error: Cannot find module './Worker.js'

Note: I've worked around the solutions given on the following Github Issue but it didn't work for me and the same is the case if I try running my shell through Rosetta.

Let me know if there's any other possible solution. Thanks.

Upgrading to node 14.17.5 solve this for me

Cannot run azure functions on M1
 
 
Q