robbie-cahill / tunnelmole-client

Tunnelmole - Connect to local servers from anywhere
MIT License
1.29k stars 80 forks source link

TypeError on Run #6

Closed GoAwayNow closed 1 year ago

GoAwayNow commented 1 year ago

I installed tunnelmole via NPM and get this error every time I try to run it.

TypeError: program.name(...).usage is not a function
    at run (file:///C:/Users/user/AppData/Roaming/npm/node_modules/tunnelmole/bin/tunnelmole.ts:29:10)
    at file:///C:/Users/user/AppData/Roaming/npm/node_modules/tunnelmole/bin/tunnelmole.ts:56:11
    at file:///C:/Users/user/AppData/Roaming/npm/node_modules/tunnelmole/bin/tunnelmole.ts:57:3
    at ModuleJob.run (node:internal/modules/esm/module_job:193:25)

I have Node v19.8.1 and NPM 9.6.4.

robbie-cahill commented 1 year ago

I just set up Node v19.8.1, I didn't get this error.

➜  tunnelmole-client git:(main) node --version
v19.8.1
➜  tunnelmole-client git:(main) tmole 3000
http://yl04rp-ip-157-211-195-169.tunnelmole.com is forwarding to localhost:3000
https://yl04rp-ip-157-211-195-169.tunnelmole.com is forwarding to localhost:3000

How exactly are you running it?

GoAwayNow commented 1 year ago

Nothing out of the ordinary as far as I know. I had only just installed Node via winget, then I updated NPM, then installed tunnelmole with the command in the readme. Then I just typed "tmole " with, of course, an actual port, I just can't remember the specific port right now.

On Tue, Apr 11, 2023 at 3:09 AM Robbie @.***> wrote:

I just set up Node v19.8.1, I didn't get this error.

➜ tunnelmole-client git:(main) node --version v19.8.1 ➜ tunnelmole-client git:(main) tmole 3000http://yl04rp-ip-157-211-195-169.tunnelmole.com is forwarding to localhost:3000https://yl04rp-ip-157-211-195-169.tunnelmole.com is forwarding to localhost:3000

How exactly are you running it?

— Reply to this email directly, view it on GitHub https://github.com/robbie-cahill/tunnelmole-client/issues/6#issuecomment-1502879397, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANRNKQ7PK6CKGISPPNGGMWDXAUGTNANCNFSM6AAAAAAWZO2JZ4 . You are receiving this because you authored the thread.Message ID: @.***>

GoAwayNow commented 1 year ago

Oh, yeah, Windows 10 Pro 22H2, Powershell 7.3.3.

robbie-cahill commented 1 year ago

I'd try getting node from the offical site https://nodejs.org, maybe something is going on with the winget version.