Install Npm On A Debian, Ubuntu, Alpine, Arch, Kali, Fedora And Raspbian

Install Npm On A Debian, Ubuntu, Alpine, Arch, Kali, Fedora And Raspbian

npm

JavaScript and Node.js package manager.
Manage Node.js projects and their module dependencies.
Homepage: .

Maintainer: Debian Javascript Maintainers



Section: web

Install npm

  • Debian apt-get install npm Click to copy
  • Ubuntu apt-get install npm Click to copy
  • Alpine OS apk add npm Click to copy
  • Arch Linux pacman -S npm Click to copy
  • Kali Linux apt-get install npm Click to copy
  • Fedora dnf install npm-1 Click to copy
  • Raspbian apt-get install npm Click to copy

JavaScript and Node.js package manager. Manage Node.js projects and their module dependencies. Homepage: .

How to use npm?

Below are few example commands for npm that you can use in the terminal.

Download and install a module globally:
npm install -g module_nameClick to copy
Download all dependencies referenced in package.json:
npm installClick to copy
Download a given dependency required for the application to run, and add it to the package.json:
npm install [email protected] --saveClick to copy
Download a given dependency for development purposes, and add it to the package.json:
npm install [email protected] --save-devClick to copy
Uninstall a module:
npm uninstall module_nameClick to copy
List a tree of installed modules referenced in package.json:
npm listClick to copy
List top-level globally installed modules:
npm list -g --depth=0Click to copy
Interactively create a package.json file:
npm initClick to copy
Install the latest version of npm in Debian, Ubuntu, Alpine, Arch, Kali, Fedora and Raspbian from terminal. To install the npm just copy the above command for your OS and run into terminal. After you run the command it will grab the latest version of npm from the respository and install it in your computer/server.