LoginSignup
1
1

More than 3 years have passed since last update.

Windows10で `ngrok` コマンドが失敗する場合、 `ngrok.cmd` と入力する。

Last updated at Posted at 2019-10-12

それはLineBot開発中に起こった

LineBotをローカルで動かしたい。
どうやらngrokというものがあるようだ。さっそく入れて使ってみよう。

$ npm install -g ngrok
$ ngrok http 8080
/c/Program Files/nodejs/ngrok: line 1: /node_modules/ngrok/bin/ngrok: No such file or directory

おやおや。

解決策を見つけた

TLmaK0 commented

$ ngrok.cmd http 8080
ngrok by @inconshreveable                                                                                                                                               (Ctrl+C to quit)

Session Status                online
Session Expires               7 hours, 59 minutes
Update                        update available (version 2.3.35, Ctrl-U to update)
Version                       2.3.25
Region                        United States (us)
Web Interface                 http://127.0.0.1:4040
Forwarding                    http://hoge114514.ngrok.io -> http://localhost:8080
Forwarding                    https://hoge114514.ngrok.io -> http://localhost:8080

Connections                   ttl     opn     rt1     rt5     p50     p90     
                              0       0       0.00    0.00    0.00    0.00

ngrokngrok.cmdにして実行したらうまくいった。
ありがてぇありがてぇ。

最後に

うーん、こんなことにハマるならMacにするかぁ

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1