Link to home
Start Free TrialLog in
Avatar of Dinesh Bali
Dinesh Bali

asked on

Unable to run node project

Hi,

I wanted to run the project locally. from github: https://github.com/sampotts/plyr

code is building by npm run build command
But I am not able to run locally using
npm run serve command

It is not recognising serve command.

Please advise.



Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

That is not a Node project though. That is a library you use in your HTML
Node is a server solution - this library is intended for the client..
It is not recognising serve command.
Install the serve package first : https://www.npmjs.com/package/serve
npm i serve

Open in new window

1) Aside: Just reading over the docs of this project had my head swimming.

Suggestion: Open a new question... title of something like... "Describe how your do self-hosted audio/video streaming".

Must easier to arrange for all this on the server side, then use a simple <video> tag for your markup.

2) If you really must use this project, then you'll provide every command you issued, along with all command output, which will likely show some minor problem.

To test plyr someone would have to take the time to actually go through all the setup instructions.

If you find comments coming to slowly for you...

Open a GitHub issue ticket about this with the pylr developers.
Avatar of Dinesh Bali
Dinesh Bali

ASKER

Many thanks everyone for your replies.
I am still trying to build and run.

Hi @Julian,

Are you sure below code is not node code?
User generated image
Also, I am trying to run this code using gulp build. I am missing something?

User generated image

@leakim971, I tried code npm i serve. That did not helped.

@David,
I can see error is already at UR: https://github.com/sampotts/plyr/issues/2248
No response from May.

Guys,
Please help me out here.

Kind Regards
ASKER CERTIFIED SOLUTION
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks Julian

Here my expectation is just to build and run this code on my local.
I am using VSCode.

Kind Regards,
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You are too good. Many thanks to you and EE
You are welcome Dinesh.

As an aside npm can be used to install any package - it does not mean it is specifically for node. Client side code can also be installed using npm - maybe that is what caused some of the confusion.
Many thanks Julian