Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dylhof/1218eff8a6a61b7e12cb48b40bf4cdeb to your computer and use it in GitHub Desktop.
Save dylhof/1218eff8a6a61b7e12cb48b40bf4cdeb to your computer and use it in GitHub Desktop.

Why do package managers exist for front-end developers building web apps?

Package managers exist for front-end developers building web apps so they can more easily manage asset instalations, upgrades, removals and dependencies.

What is npm and what does it allow developers to do?

NPM is a registry that hosts a large number of "packaged modules of code" added and used by JavaScript developers. NPM is also the command line client that allows the download, installation and upload of these packages. It is a public collection of open-source packages developed to solve a particular problem by developers in the JavaScript community. Basically it is a way to reuse code from other developers and to share your code that might help others.

Describe what a 'dependency' is, and the difference between a devDependency and a regular dependency. Give an example of each.

A dependency is when one section or package of code needs another section or package of code to run properly. The difference between a devDependency and a regular dependency is that a devDependency is only needed during development while a regular dependency is also needed during normal use of the application after development. A few examples of devDependencies would be esLint or Mocha/Chai. Some regular dependencies would be React and Redux.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment