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.
What to install, to run a script in Javascript?
What to install, to run a script in Javascript?
Xenial Puppy 64, Gigabyte motherboard, Intel i7 4770.
-
- Posts: 168
- Joined: Fri 26 Jan 2018, 20:54
Bushbuck, without more details I'd say you're looking for this Java Runtime.
- OscarTalks
- Posts: 2196
- Joined: Mon 06 Feb 2012, 00:58
- Location: London, England
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
Maybe try installing the binary in /usr/bin (I would also strip and chown it)
Then run
Code: Select all
node yourscript.js
Oscar in England