Ngrok Tunnel Failed to Start on New Discount App

I am trying to test out the new Shopify discount app feature using functions and have successfully cloned the repository into my machine.

Sample Code

After deploying and setting the function id, I then move to

npm i dev

which after installing and checking for necessary dependencies prompts me with “The ngrok tunnel could not be started. failed to start the ngrok process”

Tried Approaches

  • delete and reinstall ngrok
  • delete and clone again
  • delete node_modules and package-lock.json and reinstalling using npm i

Device - Mac Mini M1
OS - macOS Ventura

Any help is highly appreciated,

Thanks