from small one page howto to huge articles all in one place

search text in:




Other .linuxhowtos.org sites:gentoo.linuxhowtos.org



Last additions:
using iotop to find disk usage hogs

using iotop to find disk usage hogs

words:

887

views:

210172

userrating:


May 25th. 2007:
Words

486

Views

259147

why adblockers are bad


Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

words:

161

views:

150507

userrating:


April, 26th. 2006:

Druckversion
You are here: manpages





INSTALL

Section: (5)
Updated: October 2025
Index Return to Main Contents
 

NAME

install- Download and install node and npm  

Description

To publish and install packages to and from the public npm registry, you must install Node.js and the npm command line interface using either a Node version manager or a Node installer. We strongly recommend using a Node version manager to install Node.js and npm. We do not recommend using a Node installer, since the Node installation process installs npm in a directory with local permissions and can cause permissions errors when you run npm packages globally.  

Overview

*
(Checking your version of npm and Node.js)
*
(Using a Node version manager to install Node.js and npm)
*
(Using a Node installer to install Node.js and npm)

 

Checking your version of npm and Node.js

To see if you already have Node.js and npm installed and check the installed version, run the following commands:
node-v
npm-v
 

Using a Node version manager to install Node.js and npm

Node version managers allow you to install and switch between multiple versions of Node.js and npm on your system so you can test your applications on multiple versions of npm to ensure they work for users on different versions. You can search for them on GitHub lahttps://github.com/search?q=node+version+manager+archived%3Afalse&type=repositories&ref=advsearchra.  

Using a Node installer to install Node.js and npm

If you are unable to use a Node version manager, you can use a Node installer to install both Node.js and npm on your system.
*
Node.js installer lahttps://nodejs.org/en/download/ra
*
NodeSource installer lahttps://github.com/nodesource/distributionsra. If you use Linux, we recommend that you use a NodeSource installer.

 

macOS or Windows Node installers

If you're using macOS or Windows, use one of the installers from the Node.js download page lahttps://nodejs.org/en/download/ra. Be sure to install the version labeled LTS. Other versions have not yet been tested with npm.  

Linux or other operating systems Node installers

If you're using Linux or another operating system, use one of the following installers:
*
NodeSource installer lahttps://github.com/nodesource/distributionsra (recommended)
*
One of the installers on the Node.js download page lahttps://nodejs.org/en/download/ra

Or see this page lahttps://nodejs.org/en/download/packag-manager/ra to install npm for Linux in the way many Linux developers prefer.


 

Index

NAME
Description
Overview
Checking your version of npm and Node.js
Using a Node version manager to install Node.js and npm
Using a Node installer to install Node.js and npm
macOS or Windows Node installers
Linux or other operating systems Node installers





Support us on Content Nation
rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2025 Sascha Nitsch Unternehmensberatung GmbH
Valid XHTML1.1 : Valid CSS
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 19.4 ms