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

# Install Latest NodeJS In Linux

We can get latest version of NodeJS by -

## Setup

### Setting APT Repositories

```bash
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
```

**Note:** This will setup NodeJS 16 on the system.

### Installing NodeJS

```bash
sudo apt-get install -y nodejs
```

This will install NodeJS and NPM.

***Source:*** [***JoshTronic***](https://joshtronic.com/2020/10/25/how-to-install-nodejs-15-on-ubuntu/)

**Reference(s)**

* [NodeSource Distributions - GitHub](https://github.com/nodesource/distributions)
