# NodeJs

#### Install Node Js

{% tabs %}
{% tab title="Node" %}

```
sudo apt update

curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -

#có thể đổi setup_12.x thành phiên bản cần thiết

sudo apt -y install nodejs

sudo apt -y  install gcc g++ make

```

{% endtab %}
{% endtabs %}

#### Install Pm2

```
npm i -g pm2

# Start node js

pm2 start index.js --watch

```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://devops.azibai.com/nodejs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
