Article

Table of Contents
Theme:
Was this article helpful?

2  out of  6 found this helpful

Try Vultr Today with

$50 Free on Us!

Want to contribute?

You could earn up to $600 by adding new articles.

How to Install Node.js from Source

Last Updated: Tue, Jan 25, 2022
Linux Guides Node.js

Introduction

If you need to install Node.js from source, you should consult the official documentation.

Overview

Here is a brief summary of the steps:

  1. Install the necessary build dependencies, C++ compiler, and build toolchain for your system.

  2. Install Python.

  3. Download the source code.

  4. Launch ./configure

  5. Launch make.

  6. Test your compiled version with make test.

  7. Install it with make install.

  8. 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.

Want to contribute?

You could earn up to $600 by adding new articles.