How to associate javascript files with Node on Linux? I want to run js script i.e. "mainnet.js" without typing "node mainnet.js", see below
$ mainnet.js
exec: "mainnet.js": executable file not found in $PATH
I'm using Ubuntu
How to associate javascript files with Node on Linux? I want to run js script i.e. "mainnet.js" without typing "node mainnet.js", see below
$ mainnet.js
exec: "mainnet.js": executable file not found in $PATH
I'm using Ubuntu