jn-jairo/laravel-ngrok

Can not start ngrok, ngrok not found

Closed this issue · 1 comments

  • Version: #.#.#
  • PHP Version: 8.1
  • Laravel Framework Version: 9.0
  • Ngrok Version: 3.0.5

Describe the bug
When running php artisan ngrok, the next is returned :


| NGROK |

Host header: 0ea7-2a02-a45c-6ca4-1-64c3-aa90-f163-e561.eu.ngrok.io
Host: localhost
Port: 80

sh: line 0: exec: ngrok: not found

To Reproduce
Steps to reproduce the behavior:

  1. Install ngrok ( macos ) save on Desktop
  2. Make an alias : alias ngrok="~/Desktop/ngrok"
  3. Go to your application root ( valet, ~/Sites/MyApp )
  4. Run php artisan ngrok

Expected behavior
A ngrok tunnel

Issue being solved by adding ngrok to /usr/local/bin