Node.js - Creating your first NodeJS Hello World app on Linux

by
Jeremy Canfield |
Updated: July 22 2024
| Node.js articles
If you have not yet installed Node.js, check out my article Install Node.js on Linux.
Let's use the which command to determine if the Node.js node CLI is in your $PATH.
~]$ which node
/usr/bin/node
Create a file named app.js that contains the following console.log.
console.log("Hello World");
Use the node CLI to run app.js and "Hello World" should be displayed.
~]$ node app.js
Hello World
Did you find this article helpful?
If so, consider buying me a coffee over at