Bootstrap FreeKB - NodeJS - Creating your first NodeJS Hello World app on Linux
NodeJS - Creating your first NodeJS Hello World app on Linux

Updated:   |  NodeJS articles

If you have not yet installed NodeJS, check out my article Install NodeJS on Linux.

Let's use the which command to determine if the NodeJS 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 Buy Me A Coffee



Comments


Add a Comment


Please enter 847650 in the box below so that we can be sure you are a human.