ngrok command not found

前端 未结 17 995
借酒劲吻你
借酒劲吻你 2020-12-22 18:54

I\'m trying to install ngrok (which I\'ve been using for a while on Windows with no issues) on my 1 week old yosemite and these are the steps I\'ve followed so

相关标签:
17条回答
  • 2020-12-22 19:29

    In shorts,ngrok should be in same directory in which you are running ngrok command.

    0 讨论(0)
  • 2020-12-22 19:33

    This is how I got it to work..

    For Mac

    1. If you downloaded via a download link, you need to add ngrok path to your .bash_profile or .bashrc whichever one you are using.

    For Windows 10 bash:

    1. Download ngrok from https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-windows-amd64.zip
    2. Move executable file ngrok.exe to C:\Windows\system32\ngrok.exe
    3. Add Environment Variables via UI (search for "Edit the environment variables for your account" in the search bar next to windows logo => double click on Path under Users Variables for yourusername => Click New => add your path C:\Windows\system32\ngrok.exe => click OK.
    4. Restart your bash and you should be able to run "ngrok http 80" command.
    0 讨论(0)
  • 2020-12-22 19:33

    I had followed the instructions as per the ngrok download instructions:

    So the file downloaded to ~/Downloads

    But I still needed to move ngrok into my binaries folder, like so:

    mv ~/Downloads/ngrok /usr/local/bin
    

    Then running ngrok in terminal works

    0 讨论(0)
  • 2020-12-22 19:34

    I have also faced this issue on my MacOS, I used these simple steps and it worked for me.

    Just open the terminal and go to your project folder where you what to start ngrok and then unzip downloaded file.

    $ unzip /path/to/ngrok.zip
    

    After doing this you don't need to authenticate ngrok, just run this command:

    ./ngrok  http 80
    

    It should work now.

    0 讨论(0)
  • 2020-12-22 19:35

    On Windows ngrok.cmd works well from Git Bash, not ngrok

    0 讨论(0)
  • 2020-12-22 19:36
    • Download the zip file.
    • Unzip it.
    • Open The terminal in the current location (inside unzip folder) where you unzip the file.
    • Execute the following command into the terminal :

      sudo cp ngrok /usr/local/bin          
      

      Now your ngrok execuatable file is successfully copied to the /usr/local/bin directory. Now you are able to run the ngrok command in the terminal

    0 讨论(0)
提交回复
热议问题