codegurukool.com · Free coding tutorials & online compiler

Home › Node.js Tutorial › Node.js get started

Node.js get started

Install Node.js and run a file.

Download Node.js from nodejs.org and check it with node -v. Save code in a file such as app.js and run it with node app.js.

Example code

// Terminal: node app.js
console.log("Running on Node " + (process.version ? "OK" : "?"));

Run this code in the online editor

← Node.js installationNode.js modules →