> For the complete documentation index, see [llms.txt](https://devops.azibai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://devops.azibai.com/nodejs.md).

# 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

```
