---
title: How to Install Node.js from Source
url: https://docs.vultr.com/how-to-install-node-js-from-source
description: Learn how to install Node.js from source code with our step-by-step guide. Discover compilation options, troubleshooting tips, and benefits of source installation.
publish_date: 2022-01-25T00:00:00Z
last_updated: 2023-11-21T20:31:19.295159Z
header_image: https://docs.vultr.com/public/doc-assets/1198/71dcd134a78d5424.png
---

> Index of every Vultr Docs page in markdown: https://docs.vultr.com/llms.txt

## Introduction

If you need to install Node.js from source, you should [consult the official documentation](https://github.com/nodejs/node/blob/master/BUILDING.md).

## Overview

Here is a brief summary of the steps:

1. Install the necessary build dependencies, C++ compiler, and build toolchain for your system.
1. Install Python.
1. Download the [source code](https://github.com/nodejs/node).
1. Launch `./configure`
1. Launch `make`.
1. Test your compiled version with `make test`.
1. Install it with `make install`.
1. Check the version with `node --version`.

## Why Install from Source?

* **Pro:** You can install any version of Node.js.
* **Pro:** You have full control.
* **Con:** You need to install a compiler and build tools before you can even start.
* **Con:** Most complicated and slowest way to install Node.js.

## Summary

Vultr does not recommend installing Node.js from source.
