Error when running in cli #2

已关闭
由 Ghost 于 2018-10-13 17:49:10 +00:00 打开 · 8 评论

Node v10.7.0

Cannot run sclient

.nvm/versions/node/v10.7.0/bin/sclient: 1: .nvm/versions/node/v10.7.0/bin/sclient: use strict: not found

.nvm/versions/node/v10.7.0/bin/sclient: 3: .nvm/versions/node/v10.7.0/bin/sclient: Syntax error: "(" unexpected
Node v10.7.0 Cannot run sclient ``` .nvm/versions/node/v10.7.0/bin/sclient: 1: .nvm/versions/node/v10.7.0/bin/sclient: use strict: not found .nvm/versions/node/v10.7.0/bin/sclient: 3: .nvm/versions/node/v10.7.0/bin/sclient: Syntax error: "(" unexpected ```
管理员

Doh! It’s missing the #!/usr/bin/env node up at the top.

I’m AFK tonight, but you can also download and use the standalone Go version:

https://telebit.cloud/sclient

The Go version is slightly behind the node version I’m terms of some of the shortcut methods, but the core functionality is identical.

Or you could it the file npm installed and add the missing bash header described above.

Doh! It’s missing the `#!/usr/bin/env node` up at the top. I’m AFK tonight, but you can also download and use the standalone Go version: https://telebit.cloud/sclient The Go version is slightly behind the node version I’m terms of some of the shortcut methods, but the core functionality is identical. Or you could it the file npm installed and add the missing bash header described above.
管理员

I actually don’t know how nvm works, but if it’s not doing anything too fancy this is the file that needs the bash header:

.nvm/versions/node/v10.7.0/bin/sclient

I’ll fix it tomorrow.

I actually don’t know how nvm works, but if it’s not doing anything too fancy this is the file that needs the bash header: `.nvm/versions/node/v10.7.0/bin/sclient` I’ll fix it tomorrow.
管理员

Published v1.4.3 with the bash header fix. Please test and close.

Published v1.4.3 with the bash header fix. Please test and close.
coolaj862018-10-15 21:44:02 +00:00 指派给自己
作者

It is working now...

It is working now...
Ghost2018-10-16 14:38:53 +00:00 关闭此工单
管理员

Awesome. If you can spare another minute, I'm curious to know two things:

  1. How did you find out about sclient?
  2. What are you using it for?
Awesome. If you can spare another minute, I'm curious to know two things: 1. How did you find out about sclient? 2. What are you using it for?
作者

I was searching for vpn solution and heard about telebit in Javascript Jabber Podcast. Through that ended up in this project.

I am using telebit for connecting my Media server via raspberrypi.

Currently i am just hacking around and trying to run telebit in heroku.

I was searching for vpn solution and heard about telebit in Javascript Jabber Podcast. Through that ended up in this project. I am using telebit for connecting my Media server via raspberrypi. Currently i am just hacking around and trying to run telebit in heroku.
管理员

I don't think you'll be able to run the telebit remote on Heroku due to how Heroku force-closes stale connections (and deletes files, so the certs would be lost, regenerated, and rate limited - which could affect other users if you're using the telebit.io domains, so please don't do that).

I don't think you'll be able to run the telebit relay on Heroku without paying a ton of money because of the multiple domains and wildcard routing.

I'd recommend trying to get it running on Digital Ocean instead, which is a better fit for an always-on, always-connected type of application.

Are you trying to run the remote or the relay?

I don't think you'll be able to run the telebit remote on Heroku due to how Heroku force-closes stale connections (and deletes files, so the certs would be lost, regenerated, and rate limited - which could affect other users if you're using the telebit.io domains, so please don't do that). I don't think you'll be able to run the telebit relay on Heroku without paying a ton of money because of the multiple domains and wildcard routing. I'd recommend trying to get it running on Digital Ocean instead, which is a better fit for an always-on, always-connected type of application. Are you trying to run the remote or the relay?
作者

I was trying relay. I will try Digital Ocean instead

I was trying relay. I will try Digital Ocean instead
登录 并参与到对话中。
未选择标签
2 名参与者
通知
到期时间
未设置到期时间。
依赖工单

没有设置依赖项。

参考:coolaj86/sclient.js#2
没有提供说明。