To run a Node.js program, simply run node app.js
or nodejs app.js
, where app.js is the filename of your node app source code. You do not need to include the .js
suffix for Node to find the script you'd like to run.
To run a Node.js program, simply run node app.js
or nodejs app.js
, where app.js is the filename of your node app source code. You do not need to include the .js
suffix for Node to find the script you'd like to run.