"If a worker wants to do his job well, he must first sharpen his tools." - Confucius, "The Analects of Confucius. Lu Linggong"
Front page > Programming > Tutorial on using node js to display hello world

Tutorial on using node js to display hello world

Published on 2024-11-08
Browse:435

1.dowload node js here

2.
Tutorial memakai node js sampai memunculkan hello world
Click Download

3.and download when it is open in the file manager
Tutorial memakai node js sampai memunculkan hello world
make sure your node version is at least v-20 and make sure the system type is the same as your laptop/PC, for example here the system type is x64

4.and make sure you download git bash

notes
-Do not use any tools. just use default
-terminal using Git - Downloads (git-scm.com)

5.and To make sure Node.js is installed, open Command Prompt (CMD) and type:

Tutorial memakai node js sampai memunculkan hello world
and the version that you downloaded will come out and that will confirm that your node js has been downloaded

6.create directory
project Open a Command Prompt or terminal and create a directory for your project, then go into it:

Tutorial memakai node js sampai memunculkan hello world
7. create a file for example main.js

8.run js file

Tutorial memakai node js sampai memunculkan hello world
9.the result brings up

Tutorial memakai node js sampai memunculkan hello world
10.edit if necessary using

Tutorial memakai node js sampai memunculkan hello world
notes
terminal
ls = to see the contents of the folder
ls -a = to see all folder contents including hidden ones
DIR = to view the contents of a folder in Windows
mkdir = create folder
cd = to go to folder
cd .. = to exit folder
touch = to create file (os)
echo 'console.log("hello students")' > main.js (create file)
rm = to delete files (MAC)
del = to delete files (Windows)

Nano / Edit file contents (Only on MAC OS and Linux)
nano = edit file
ctrl o = save file (enter)
ctrl x = exit edit file

Nodes
node -v = view node.js version. minimum version 20
npm -v = to see the npm (package managing) version. minimum version 10

Release Statement This article is reproduced at: https://dev.to/gaza_alfath/tutorial-memakai-node-js-sampai-memunculkan-hello-world-2pia?1 If there is any infringement, please contact [email protected] to delete it
Latest tutorial More>

Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.

Copyright© 2022 湘ICP备2022001581号-3