Installing Node.js and Running Your First Node.js Application

Installing Node.js and Running Your First Node.js Application

Daily short news for you
  • openai/codex is the latest open-source project from OpenAI, following their announcement of the two newest models, o3 and o4 mini. It is said that both o3 and o4 mini are very suitable for being Agents, so they released Codex as a lightweight Agent that runs directly in the Terminal.

    Regarding its applicability, since it is an Agent, it can read/add/edit/delete the contents of your files. For example.

    codex "explain this codebase to me"

    Or integrate it into your CI/CD pipeline.

    - name: Update changelog via Codex run: | npm install -g @openai/codex export OPENAI_API_KEY="${{ secrets.OPENAI_KEY }}" codex -a auto-edit --quiet "update CHANGELOG for next release"

    Oh, I almost forgot, you need to use the OpenAI API 😆

    » Read more
  • Perhaps many people do not know that OpenAI has launched its own academy page to help users learn and fully harness the power of their language models.

    OpenAI Academy

    » Read more
  • Mornings have started with some sensational news: OpenAI wants to acquire Windsurf for $3 billion 😳

    » Read more

Node.js is an open-source software that is available for free download on the Node.js download page.

Installation

  • For Windows users, click on the Windows Installer
  • For Mac users, click on the macOS Installer
  • For Linux users, you can install it using a package manager

For example, to install Node.js LTS (v12.x) on Ubuntu, you can run the following commands:

curl -sL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt-get install -y nodejs

Your First Hello World Program

Running a JavaScript application with Node.js is quite simple. Let's create a file called index.js with the following content:

console.log('Hello World');

Save the file and run the following command in the command line:

node index.js

Output:

Hello World
Premium
Hello

5 profound lessons

Every product comes with stories. The success of others is an inspiration for many to follow. 5 lessons learned have changed me forever. How about you? Click now!

Every product comes with stories. The success of others is an inspiration for many to follow. 5 lessons learned have changed me forever. How about you? Click now!

View all

Subscribe to receive new article notifications

or
* The summary newsletter is sent every 1-2 weeks, cancel anytime.

Comments (1)

Leave a comment...
Avatar
Xuân Hoài Tống1 year ago
Ôi bài viết đã từ hơn 3 năm trước
Reply
Avatar
Xuân Hoài Tống1 year ago
Bài viết thật sơ sài 😅