http-server: command not found

12 views
Skip to first unread message

anto gian

unread,
Jan 3, 2020, 10:32:44 AM1/3/20
to OpenVidu
I'm trying to implement the openvidu-insecure-js(https://openvidu.io/docs/tutorials/openvidu-insecure-js/) demo. I typed the following commands on Windows 10 PowerShell

1)
Creates a folder called "openvidu-tutorials"

2)
npm install -g http-server
Seems to run properly. I'm getting
.... + http-...@0.12.0
added 27 packages from 35 contributors in 7.252s

3)
http-server openvidu-tutorials/openvidu-insecure-js/web
This does run properly. I'm getting "http-server: command not found"

4)
docker run -p 4443:4443 --rm -e openvidu.secret=MY_SECRET -e openvidu.publicurl=https://192.168.99.100:4443/ openvidu/openvidu-server-kms:2.11.0
Runs.

After steps above I tried to access
localhost:8080 or https://localhost:8080 or https://192.168.99.100:4443/ but none of them works.


Have I done something wrong? How can I make this work?

Micael Gallego

unread,
Jan 3, 2020, 10:44:53 AM1/3/20
to anto gian, OpenVidu
It seems that there was a bug with npm in powershell.


It seems to be fixed now, but maybe you have an older version affected by the bug.

Best regards

Micael Gallego
Kurento / OpenVidu Project Lead


--
You received this message because you are subscribed to the Google Groups "OpenVidu" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openvidu+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openvidu/68668593-b6e6-4cf6-b38d-5cae8ce8a5c7%40googlegroups.com.

anto gian

unread,
Jan 3, 2020, 10:51:58 AM1/3/20
to OpenVidu
Yes but step 2 seems to work. I have also tried Git bash.


Τη Παρασκευή, 3 Ιανουαρίου 2020 - 5:44:53 μ.μ. UTC+2, ο χρήστης Micael Gallego έγραψε:
It seems that there was a bug with npm in powershell.


It seems to be fixed now, but maybe you have an older version affected by the bug.

Best regards

Micael Gallego
Kurento / OpenVidu Project Lead


On Fri, Jan 3, 2020 at 4:32 PM anto gian <antog...@gmail.com> wrote:
I'm trying to implement the openvidu-insecure-js(https://openvidu.io/docs/tutorials/openvidu-insecure-js/) demo. I typed the following commands on Windows 10 PowerShell

1)
Creates a folder called "openvidu-tutorials"

2)
npm install -g http-server
Seems to run properly. I'm getting
.... + http-...@0.12.0
added 27 packages from 35 contributors in 7.252s

3)
http-server openvidu-tutorials/openvidu-insecure-js/web
This does run properly. I'm getting "http-server: command not found"

4)
docker run -p 4443:4443 --rm -e openvidu.secret=MY_SECRET -e openvidu.publicurl=https://192.168.99.100:4443/ openvidu/openvidu-server-kms:2.11.0
Runs.

After steps above I tried to access
localhost:8080 or https://localhost:8080 or https://192.168.99.100:4443/ but none of them works.


Have I done something wrong? How can I make this work?

--
You received this message because you are subscribed to the Google Groups "OpenVidu" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open...@googlegroups.com.

Micael Gallego

unread,
Jan 3, 2020, 10:58:40 AM1/3/20
to anto gian, OpenVidu
I don't know. I am not Windows user.

In any case, http-server only is used to server the contents of the file system by http. If http-server doesn't work for you, use another http server. There are a plenty of them. For example, this chrome extension: https://chrome.google.com/webstore/detail/web-server-for-chrome/ofhbbkphhbklhfoeikjpcbhemlocgigb

Best regards

Micael Gallego
Kurento / OpenVidu Project Lead

To unsubscribe from this group and stop receiving emails from it, send an email to openvidu+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openvidu/e050cdfd-2a16-4698-941b-1319ca41d93a%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages