1.

What is npm and mention its components?

Answer»

npm is WORLD’s largest software repository. Globally, open source developers use npm to SHARE and borrow packages. Example, you NEED to install node and npm before getting necessary packages for ANGULAR development.Packages are needed to bring modularity to code development.   

npm consists of three distinct components:

  1. website – to discover packages and their dependencies (by searching), setup profiles for authentication, version control management 
  2. CLI (Command line interface) -  runs on a terminal which is the way developers interact with npm.
  3. registry – large public database of JAVASCRIPT software and meta-information surrounding it

Some of the uses of npm are:

  1. manage multiple versions of code and code dependencies
  2. update applications easily when underlying code is updated
  3. Adapt packages of code for your apps, or incorporate packages as they are.


Discussion

No Comment Found