NPM (Node package manager)

Clock
18.09.2024
An eye
14
Hearts
0
Connected dots
0
Connected dots
0

Is a package manager for the JavaScript programming language, primarily used for managing packages (libraries and tools) that are part of the Node.js ecosystem. It enables developers to easily share and reuse code, manage project dependencies, and streamline the process of installing and maintaining libraries.
NPM consist from the next parts:
  1. A website -> https://docs.npmjs.com
  2. CLI tool
  3. registry
NPM used for:
  1. Adapting code packages for your applications
  2. Downloading a standalone tools
  3. Running packages without downloads using npx.
  4. Managing multiple versions of packages
  5. Updating applications
Some basics commands:
Installing new package with a specific version
npm install <package-name>@<version>
Package updating with a specific version
npm update <package-name>@<version>
Run a task
npm run <task-name>