Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 23 Feb 2018, 18:57
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
What to install, to run a script in Javascript?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
Bushbuck

Joined: 25 Jan 2013
Posts: 168

PostPosted: Fri 09 Feb 2018, 21:59    Post subject:  What to install, to run a script in Javascript?  

I've got a script written in Javascript, first line is
#!/usr/bin/env node

Does anyone know the name of what I need to install, to make this run? When I type "javascript" into PPM, I get a long list of things.

_________________
Tahr64 Puppy 6.0.5, Gigabyte motherboard, Intel i7 4770, 16GB RAM.
Still using Sony VAIO, 2008, with the same OS.
Back to top
View user's profile Send private message 
matchpoint

Joined: 26 Jan 2018
Posts: 108

PostPosted: Fri 09 Feb 2018, 23:06    Post subject:  

Bushbuck, without more details I'd say you're looking for this Java Runtime.
Back to top
View user's profile Send private message 
OscarTalks


Joined: 05 Feb 2012
Posts: 1675
Location: London, England

PostPosted: Sat 10 Feb 2018, 05:18    Post subject:  

I've not actually tried to do this, but a quick search suggests that there are various solutions. One of the most commonly used is node.js http://nodejs.org
Maybe try installing the binary in /usr/bin (I would also strip and chown it)
Then run
Code:
node yourscript.js

_________________
Oscar in England

Back to top
View user's profile Send private message 
Bushbuck

Joined: 25 Jan 2013
Posts: 168

PostPosted: Sat 10 Feb 2018, 17:04    Post subject:  

I think that's probably the thing, Oscar. I'll try that, thanks.

[Edit] Success! Thanks again.

_________________
Tahr64 Puppy 6.0.5, Gigabyte motherboard, Intel i7 4770, 16GB RAM.
Still using Sony VAIO, 2008, with the same OS.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0336s ][ Queries: 13 (0.0097s) ][ GZIP on ]