Installing Node.js via package manager | Node.js

Installing Node.js via package manager

Note: The packages on this page are maintained and supported by their respective packagers, not the Node.js core team. Please report any issues you encounter to the box upholder. If it turns out your issue is a bug in Node.js itself, the upholder will report the issue upstream .

Alpine Linux

Node.js LTS and npm packages are available in the Main Repository .

apk add nodejs npm

Node.js Current can be installed from the Community Repository .

apk add nodejs-current


android support is still experimental in Node.js, so precompiled binaries are not even provided by Node.js developers.

however, there are some third-party solutions. For example, Termux community provides terminal copycat and Linux environment for Android, a well as own box director and extensive solicitation of many precompiled applications. This command in Termux app will install the last available Node.js translation :

pkg install nodejs

presently, Termux Node.js binaries are linked against system-icu ( depending on libicu package ) .

Arch Linux

Node.js and npm packages are available in the Community Repository .

pacman -S nodejs npm

CentOS, Fedora and Red Hat Enterprise Linux

Node.js is available as a module called nodejs in CentOS/RHEL 8 and Fedora .

dnf module install nodejs:

where corresponds to the major adaptation of Node.js. To see a number of available streams :

dnf module list nodejs

For example, to install Node.js 12 :

dnf module install nodejs:12

For CentOS/RHEL 7 Node.js is available via Software Collections .


These resources provide packages compatible with CentOS, Fedora, and RHEL .

Debian and Ubuntu based Linux distributions

Node.js binary distributions are available from NodeSource .


Packages compatible with Debian and Ubuntu based Linux distributions are available via Node.js snaps .


Fast and dim-witted Node.js version coach built in Rust used to manage multiple released Node.js versions. It allows you to perform operations like install, uninstall, switch Node versions automatically based on the stream directory, etc. To install fnm, use this install script .
fnm has cross-platform confirm ( macOS, Windows, Linux ) & all popular shells ( Bash, Zsh, Fish, PowerShell, Windows Command Line Prompt ). fnm is built with amphetamine in mind and compatibility documentation for .node-version and .nvmrc files .


The most late release of Node.js is available via the www/node port .
Install a binary package via pkg :

pkg install node

Or compile it on your own using ports :

cd /usr/ports/www/node && make install


Node.js is available in the portage tree .

emerge nodejs


LTS versions of Node.js are available from IBM, and are available via the ‘yum ‘ package coach. The package mention is nodejs followed by the major version phone number ( for case, nodejs12, nodejs14 etc )
To install Node.js 14.x from the dominate line, run the follow as a user with *ALLOBJ special assurance :

yum install nodejs14

Node.js can besides be installed with the IBM one Access Client Solutions intersection. See this support document for more details


Download the macOS Installer directly from the web web site .
If you want to download the package with bash :

curl "${VERSION:-$(wget -qO- | sed -nE 's|.*>node-(.*)\.pkg

.*|\1|p’)}.pkg” > “$HOME/Downloads/node-latest.pkg” && sudo installer -store -pkg “$HOME/Downloads/node-latest.pkg” -target “/”


Using Homebrew :

brew install node

Using MacPorts :

port install nodejs

# Example
port install nodejs7

Using pkgsrc :
Install the binary package :

pkgin -y install nodejs

Or build manually from pkgsrc :

cd pkgsrc/lang/nodejs && bmake install


n is a simpleton to use Node.js version director for Mac and Linux. Specify the prey version to install using a ample syntax, or select from a menu of previously downloaded versions. The versions are installed system-wide or user-wide, and for more target consumption you can run a adaptation directly from the hoard downloads .
See the home page for install methods ( boostrap, npm, Homebrew, third-party ), and all the custom details .
If you already have npm then installing n and then the newest LTS node interpretation is arsenic simple as :

npm install -g n
n lts


Node.js is available in the pkgsrc tree :

cd /usr/pkgsrc/lang/nodejs && make install

Or install a binary package ( if available for your platform ) using pkgin :

pkgin -y install nodejs


nodenv is a lightweight node version director, similar to nvm. It ‘s elementary and predictable. A rich plugin ecosystem lets you tailor it to suit your needs. Use nodenv to pick a Node version for your application and guarantee that your development environment matches production .
Nodenv initiation instructions are maintained on its Github page. Please visit that page to ensure you ‘re following the latest version of the installation steps .


Node Version Manager is a knock script used to manage multiple released Node.js versions. It allows you to perform operations like install, uninstall, switch adaptation, etc. To install nvm, use this install script .
On Unix / OS X systems Node.js built from reservoir can be installed using nvm by installing into the placement that nvm expects :

env VERSION=`python tools/` make install DESTDIR=`nvm_version_path v$VERSION` PREFIX=""

After this you can use nvm to switch between released versions and versions built from source. For exemplar, if the version of Node.js is v8.0.0-pre :

nvm use 8

once the official release is out you will want to uninstall the interpretation built from source :

nvm uninstall 8



The nvs version director is cross-platform and can be used on Windows, macOS, and Unix-like systems
To install nvs on Windows go to the secrete page here and download the MSI installer file of the latest handout .
You can besides use chocolatey to install it :

choco install nvs

You can find the documentation regarding the installation steps of nvs in macOS/Unix-like systems hera


After this you can use nvs to switch between different versions of node .
To add the latest adaptation of node :

nvs add latest

Or to add the latest LTS adaptation of node :

nvs add lts

then run the nvs use command to add a translation of node to your PATH for the stream blast :

$ nvs use lts
PATH -= %LOCALAPPDATA%\nvs\default
PATH += %LOCALAPPDATA%\nvs\node\14.17.0\x64

To add it to PATH permanently, use nvs link :

nvs link lts


Node.js is available through the ports system .


Using pkg_add on OpenBSD :

pkg_add node

openSUSE and SLE

Node.js is available in the main repositories under the follow packages :

  • openSUSE Leap 15.2: nodejs10, nodejs12, nodejs14
  • openSUSE Tumbleweed: nodejs16
  • SUSE Linux Enterprise Server (SLES) 12: nodejs10, nodejs12, and nodejs14
    (The “Web and Scripting Module” must be enabled.)
  • SUSE Linux Enterprise Server (SLES) 15 SP2: nodejs10, nodejs12, and nodejs14
    (The “Web and Scripting Module” must be enabled.)

For example, to install Node.js 14.x on openSUSE Leap 15.2, run the follow as root :

zypper install nodejs14

Different major versions of Node can be installed and used concurrently .

SmartOS and illumos

SmartOS images come with pkgsrc pre-installed. On other illumos distributions, first install pkgsrc, then you may install the binary package as convention :

pkgin -y install nodejs

Or build manually from pkgsrc :

cd pkgsrc/lang/nodejs && bmake install


Node.js snaps are available as node on the Snap storehouse .


Solus provides Node.js in its main repository .

sudo eopkg install nodejs

Void Linux

Void Linux ships Node.js stable in the main repository .

xbps-install -Sy nodejs


Download the Windows Installer directly from the web web site .


Using Winget :

winget install OpenJS.NodeJS
# or for LTS
winget install OpenJS.NodeJS.LTS

After running one of the two commands above, it may be necessary to restart the terminal copycat before the node CLI command becomes available.

Using Chocolatey :

cinst nodejs
# or for full install with npm
cinst nodejs.install

Using Scoop :

scoop install nodejs

IBM® SDK for Node.js – z/OS® is available in two facility formats, SMP/E and PAX. Select the facility format that applies to you :

generator :
Category : Tech

About admin

I am the owner of the website, my purpose is to bring all the most useful information to users.

Check Also


Manage participants in a zoom meeting webinar

Call the people who attend the meet as follows Alternate host host Who scheduled the …

Leave a Reply

Your email address will not be published.