NPM details

NPM – or “Node Package Manager” – is the default package manager for JavaScript’s runtime Node.js.

PM consists of two main parts:

  • a CLI (command-line interface) tool for publishing and downloading packages, and
  • an online repository that hosts JavaScript packages


.npmrc file in angular details

The npmrc manages the npm config files.

What is registry in Npmrc file?

By default NPM—the Node Package Manager—uses its own public registry (at https://registry.npmjs.org) to pull down packages when you run npm install or npm update inside of a project.

If you want to specify different registries at multiple levels or scopes to override these default value

i.e. https://registry.npmjs.org

you can use .npmrc file

In this case the some of the packages will be downloded from different registry.

Package.lock.json — It contains the name, dependencies, and locked version of the project.

contains detail information about from where to download a package.

The goal of package-lock. json file is to keep track of the exact version of every package that is installed .

Leave a comment