Run Node.js scripts from the command line
How to run any Node.js script from the CLI
The usual way to run a Node program is to call the
node globally available command (once you install Node) and pass the name of the file you want to execute.
If your main Node application file is in
app.js, you can call it by typing